qemu/hw/i386
Igor Mammedov 3811ef14f5 machine: introduce MachineClass.possible_cpu_arch_ids() hook
on x86 currently range 0..max_cpus is used to generate
architecture-dependent CPU ID (APIC Id) for each present
and possible CPUs. However architecture-dependent CPU IDs
list could be sparse and code that needs to enumerate
all IDs (ACPI) ended up doing guess work enumerating all
possible and impossible IDs up to
  apic_id_limit = x86_cpu_apic_id_from_index(max_cpus).

That leads to creation of MADT entries and Processor
objects in ACPI tables for not possible CPUs.
Fix it by allowing board specify a concrete list of
CPU IDs accourding its own rules (which for x86 depends
on topology). So that code that needs this list could
request it from board instead of trying to guess
what IDs are correct on its own.

This interface will also allow to help making AML
part of CPU hotplug target independent so it could
be reused for ARM target.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
2016-03-11 16:59:12 +02:00
..
kvm msi_supported -> msi_nonbroken 2016-03-11 16:45:21 +02:00
xen msi_supported -> msi_nonbroken 2016-03-11 16:45:21 +02:00
acpi-build.c pc: acpi: remove NOP assignment 2016-03-11 16:59:12 +02:00
acpi-build.h pc: Remove compat fields from PcGuestInfo 2016-02-06 20:44:09 +02:00
intel_iommu_internal.h intel_iommu: large page support 2016-02-06 20:44:10 +02:00
intel_iommu.c intel_iommu: large page support 2016-02-06 20:44:10 +02:00
kvmvapic.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
Makefile.objs pc: acpi: remove unused ASL templates and related blobs/utils 2016-01-09 23:20:19 +02:00
multiboot.c loader: Add data swap option to load-elf 2016-03-04 11:30:21 +00:00
multiboot.h refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
pc_piix.c nvdimm acpi: initialize the resource used by NVDIMM ACPI 2016-03-11 16:59:11 +02:00
pc_q35.c nvdimm acpi: initialize the resource used by NVDIMM ACPI 2016-03-11 16:59:11 +02:00
pc_sysfw.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
pc.c machine: introduce MachineClass.possible_cpu_arch_ids() hook 2016-03-11 16:59:12 +02:00
pci-assign-load-rom.c x86: Clean up includes 2016-01-29 15:07:22 +00:00