Lines Matching +full:build +full:- +full:legacy
10 * See the COPYING file in the top-level directory.
18 #include "qemu/error-report.h"
30 uint64_t val = cpus->sts[addr]; in cpu_status_read()
40 mode by writing 0 at the beginning of legacy CPU bitmap in cpu_status_write()
44 object_property_set_bool(cpus->device, "cpu-hotplug-legacy", false, in cpu_status_write()
67 cpu_id = cpu->cc->get_arch_id(cpu); in acpi_set_cpu_present_bit()
69 object_property_set_bool(g->device, "cpu-hotplug-legacy", false, in acpi_set_cpu_present_bit()
76 g->sts[cpu_id / 8] |= (1 << (cpu_id % 8)); in acpi_set_cpu_present_bit()
100 memory_region_init_io(&gpe_cpu->io, owner, &AcpiCpuHotplug_ops, in legacy_acpi_cpu_hotplug_init()
101 gpe_cpu, "acpi-cpu-hotplug", ACPI_GPE_PROC_LEN); in legacy_acpi_cpu_hotplug_init()
102 memory_region_add_subregion(parent, base, &gpe_cpu->io); in legacy_acpi_cpu_hotplug_init()
103 gpe_cpu->device = owner; in legacy_acpi_cpu_hotplug_init()
114 MemoryRegion *parent = pci_address_space_io(PCI_DEVICE(gpe_cpu->device)); in acpi_switch_to_modern_cphp()
116 memory_region_del_subregion(parent, &gpe_cpu->io); in acpi_switch_to_modern_cphp()
117 cpu_hotplug_hw_init(parent, gpe_cpu->device, cpuhp_state, io_port); in acpi_switch_to_modern_cphp()
141 const CPUArchIdList *apic_ids = mc->possible_cpu_arch_ids(machine); in build_legacy_cpu_hotplug_aml()
145 * _MAT method - creates an madt apic buffer in build_legacy_cpu_hotplug_aml()
164 * _STA method - return ON status of cpu in build_legacy_cpu_hotplug_aml()
225 /* State change - update CPON with new state */ in build_legacy_cpu_hotplug_aml()
250 if (x86ms->apic_id_limit > ACPI_CPU_HOTPLUG_ID_LIMIT) { in build_legacy_cpu_hotplug_aml()
252 x86ms->apic_id_limit - 1); in build_legacy_cpu_hotplug_aml()
277 /* build Processor object for each processor */ in build_legacy_cpu_hotplug_aml()
278 for (i = 0; i < apic_ids->len; i++) { in build_legacy_cpu_hotplug_aml()
279 int cpu_apic_id = apic_ids->cpus[i].arch_id; in build_legacy_cpu_hotplug_aml()
307 /* build this code: in build_legacy_cpu_hotplug_aml()
312 for (i = 0; i < apic_ids->len; i++) { in build_legacy_cpu_hotplug_aml()
313 int cpu_apic_id = apic_ids->cpus[i].arch_id; in build_legacy_cpu_hotplug_aml()
323 /* build "Name(CPON, Package() { One, One, ..., Zero, Zero, ... })" in build_legacy_cpu_hotplug_aml()
325 * Note: The ability to create variable-sized packages was first in build_legacy_cpu_hotplug_aml()
326 * introduced in ACPI 2.0. ACPI 1.0 only allowed fixed-size packages in build_legacy_cpu_hotplug_aml()
330 pkg = x86ms->apic_id_limit <= 255 ? aml_package(x86ms->apic_id_limit) : in build_legacy_cpu_hotplug_aml()
331 aml_varpackage(x86ms->apic_id_limit); in build_legacy_cpu_hotplug_aml()
333 for (i = 0, apic_idx = 0; i < apic_ids->len; i++) { in build_legacy_cpu_hotplug_aml()
334 int cpu_apic_id = apic_ids->cpus[i].arch_id; in build_legacy_cpu_hotplug_aml()
339 aml_append(pkg, aml_int(apic_ids->cpus[i].cpu ? 1 : 0)); in build_legacy_cpu_hotplug_aml()