qemu-patch-raspberry4/include/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
..
apic-msidef.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
apic.h target-i386: clear bsp bit when designating bsp 2015-04-02 15:57:27 +02:00
apic_internal.h cpu/apic: drop icc bus/bridge 2015-10-02 16:22:02 -03:00
ich9.h ich9lpc: fix typo 2016-03-11 16:45:21 +02:00
intel_iommu.h intel_iommu: large page support 2016-02-06 20:44:10 +02:00
ioapic.h pc: move IO_APIC_DEFAULT_ADDRESS to include/hw/i386/ioapic.h 2013-07-29 19:33:32 -05:00
ioapic_internal.h hmp: added io apic dump state 2015-09-25 12:04:42 +02:00
pc.h machine: introduce MachineClass.possible_cpu_arch_ids() hook 2016-03-11 16:59:12 +02:00
topology.h include: Clean up includes 2016-02-23 12:43:05 +00:00