qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] i386/acpi: add _HID to processor nodes
@ 2015-10-22 10:38 Matthias Lange
  2015-10-22 11:48 ` Michael S. Tsirkin
  0 siblings, 1 reply; 6+ messages in thread
From: Matthias Lange @ 2015-10-22 10:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: ehabkost, mst, pbonzini, imammedo, Matthias Lange, rth

Processor nodes created via the acpi/aml framework currently don't
feature a _HID string. This patch appends "ACPI0007" as the _HID
string to each processor node.

Signed-off-by: Matthias Lange <matthias.lange@kernkonzept.com>
---
 hw/i386/acpi-build.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 95e0c65..95f7bf9 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -1153,6 +1153,7 @@ build_ssdt(GArray *table_data, GArray *linker,
         for (i = 0; i < acpi_cpus; i++) {
             dev = aml_processor(i, 0, 0, "CP%.02X", i);
 
+            aml_append(dev, aml_name_decl("_HID", aml_string("ACPI0007")));
             method = aml_method("_MAT", 0);
             aml_append(method, aml_return(aml_call1("CPMA", aml_int(i))));
             aml_append(dev, method);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-22 13:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-22 10:38 [Qemu-devel] [PATCH] i386/acpi: add _HID to processor nodes Matthias Lange
2015-10-22 11:48 ` Michael S. Tsirkin
2015-10-22 12:42   ` Matthias Lange
2015-10-22 13:02     ` Michael S. Tsirkin
2015-10-22 13:34       ` Matthias Lange
2015-10-22 13:43         ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).