qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: Matthias Lange <matthias.lange@kernkonzept.com>
Cc: pbonzini@redhat.com, mst@redhat.com, qemu-devel@nongnu.org,
	ehabkost@redhat.com, rth@twiddle.net
Subject: Re: [Qemu-devel] [PATCH v2] i386/acpi: add _HID to processor objects
Date: Fri, 23 Oct 2015 15:08:34 +0200	[thread overview]
Message-ID: <20151023150834.5c59c555@nial.brq.redhat.com> (raw)
In-Reply-To: <1445544204-14465-1-git-send-email-matthias.lange@kernkonzept.com>

On Thu, 22 Oct 2015 22:03:24 +0200
Matthias Lange <matthias.lange@kernkonzept.com> wrote:

> This patch appends "ACPI0007" as the HID to each processor object.
> 
> Until commit 20843d processor objects used to have a _HID. According
> to the ACPI spec this is not required but removing it breaks systems
Pls answer Michael's question about motivation of this patch.
 i.e. what guests it exactly breaks?

> which relied on the HID. As it does no harm it is safe to add _HID
> to processor objects and restore the old behaviour.
> 
> Signed-off-by: Matthias Lange <matthias.lange@kernkonzept.com>
> ---
>  hw/i386/acpi-build.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
> index 95e0c65..314cd0b 100644
> --- a/hw/i386/acpi-build.c
> +++ b/hw/i386/acpi-build.c
> @@ -1153,6 +1153,9 @@ build_ssdt(GArray *table_data, GArray *linker,
>          for (i = 0; i < acpi_cpus; i++) {
>              dev = aml_processor(i, 0, 0, "CP%.02X", i);
>  
> +            /* for processor objects a _HID is not strictly required, however it
> +             * does no harm and preserves compatibility with other BIOSes */
> +            aml_append(dev, aml_name_decl("_HID", aml_string("ACPI0007")));
Spec doesn't tell anything about using ACPI0007 with Processor statement,
it's only mentioned in context of Device statement.

>              method = aml_method("_MAT", 0);
>              aml_append(method, aml_return(aml_call1("CPMA", aml_int(i))));
>              aml_append(dev, method);

  reply	other threads:[~2015-10-23 13:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22 20:03 [Qemu-devel] [PATCH v2] i386/acpi: add _HID to processor objects Matthias Lange
2015-10-23 13:08 ` Igor Mammedov [this message]
2015-10-28  9:22   ` Matthias Lange

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=20151023150834.5c59c555@nial.brq.redhat.com \
    --to=imammedo@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=matthias.lange@kernkonzept.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).