qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Lange <matthias.lange@kernkonzept.com>
To: qemu-devel@nongnu.org
Cc: ehabkost@redhat.com, mst@redhat.com, pbonzini@redhat.com,
	imammedo@redhat.com,
	Matthias Lange <matthias.lange@kernkonzept.com>,
	rth@twiddle.net
Subject: [Qemu-devel] [PATCH] i386/acpi: add _HID to processor nodes
Date: Thu, 22 Oct 2015 12:38:11 +0200	[thread overview]
Message-ID: <1445510291-8764-1-git-send-email-matthias.lange@kernkonzept.com> (raw)

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

             reply	other threads:[~2015-10-22 10:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22 10:38 Matthias Lange [this message]
2015-10-22 11:48 ` [Qemu-devel] [PATCH] i386/acpi: add _HID to processor nodes 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1445510291-8764-1-git-send-email-matthias.lange@kernkonzept.com \
    --to=matthias.lange@kernkonzept.com \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).