summaryrefslogtreecommitdiffstats
path: root/stubs/pc_madt_cpu_entry.c
diff options
context:
space:
mode:
authorIgor Mammedov2016-04-20 11:28:57 +0200
committerMichael S. Tsirkin2016-06-24 04:21:16 +0200
commitac35f13ba8f80533b21016ced01aa55891952251 (patch)
tree19e786a9fd727c601cab940122026f82dd561f3f /stubs/pc_madt_cpu_entry.c
parentacpi: cpuhp: add CPU devices AML with _STA method (diff)
downloadqemu-ac35f13ba8f80533b21016ced01aa55891952251.tar.gz
qemu-ac35f13ba8f80533b21016ced01aa55891952251.tar.xz
qemu-ac35f13ba8f80533b21016ced01aa55891952251.zip
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>
Diffstat (limited to 'stubs/pc_madt_cpu_entry.c')
-rw-r--r--stubs/pc_madt_cpu_entry.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/stubs/pc_madt_cpu_entry.c b/stubs/pc_madt_cpu_entry.c
new file mode 100644
index 0000000000..427e772868
--- /dev/null
+++ b/stubs/pc_madt_cpu_entry.c
@@ -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)
+{
+}