mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
pc: acpi: introduce AcpiDeviceIfClass.madt_cpu hook
Add madt_cpu callback to AcpiDeviceIfClass and use it for generating LAPIC MADT entries for CPUs. Later it will be used for generating x2APIC entries in case of more than 255 CPUs and also would be reused by ARM target when ACPI CPU hotplug is introduced there. 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>
This commit is contained in:
parent
5e1b5d9388
commit
ac35f13ba8
7 changed files with 49 additions and 18 deletions
7
stubs/pc_madt_cpu_entry.c
Normal file
7
stubs/pc_madt_cpu_entry.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
#include "hw/i386/pc.h"
|
||||
|
||||
void pc_madt_cpu_entry(AcpiDeviceIf *adev, int uid,
|
||||
CPUArchIdList *apic_ids, GArray *entry)
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue