From: "Michael S. Tsirkin" <mst@redhat.com>
To: Gal Hammer <ghammer@redhat.com>
Cc: imammedo@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] acpi: add a missing backslash to the \_SB scope.
Date: Tue, 21 Apr 2015 12:09:20 +0200 [thread overview]
Message-ID: <20150421120641-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <1429604772-2257-1-git-send-email-ghammer@redhat.com>
On Tue, Apr 21, 2015 at 11:26:12AM +0300, Gal Hammer wrote:
> A predefined scope in the ACPI specs is precede with a backslash.
>
> Signed-off-by: Gal Hammer <ghammer@redhat.com>
s/precede/preceded/
This is correct, but do we need this in 2.3?
I'm split on this. Thoughts?
If yes, commit log needs better explanation on what
the effect on guests is.
> ---
> hw/i386/acpi-build.c | 2 +-
> include/hw/acpi/aml-build.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
> index 8d1a761..05c1d34 100644
> --- a/hw/i386/acpi-build.c
> +++ b/hw/i386/acpi-build.c
> @@ -856,7 +856,7 @@ build_ssdt(GArray *table_data, GArray *linker,
> aml_append(ssdt, scope);
> }
>
> - sb_scope = aml_scope("_SB");
> + sb_scope = aml_scope("\\_SB");
> {
> /* create PCI0.PRES device and its _CRS to reserve CPU hotplug MMIO */
> dev = aml_device("PCI0." stringify(CPU_HOTPLUG_RESOURCE_DEVICE));
> diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h
> index 48afb72..cb80f2a 100644
> --- a/include/hw/acpi/aml-build.h
> +++ b/include/hw/acpi/aml-build.h
> @@ -120,7 +120,7 @@ void free_aml_allocator(void);
> * Joins Aml elements together and helps to construct AML tables
> * Examle of usage:
> * Aml *table = aml_def_block("SSDT", ...);
> - * Aml *sb = aml_scope("\_SB");
> + * Aml *sb = aml_scope("\\_SB");
> * Aml *dev = aml_device("PCI0");
> *
> * aml_append(dev, aml_name_decl("HID", aml_eisaid("PNP0A03")));
> --
> 2.1.0
next prev parent reply other threads:[~2015-04-21 10:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-21 8:26 [Qemu-devel] [PATCH] acpi: add a missing backslash to the \_SB scope Gal Hammer
2015-04-21 9:38 ` Igor Mammedov
2015-04-21 10:09 ` Michael S. Tsirkin [this message]
2015-04-21 11:33 ` Peter Maydell
2015-04-21 12:53 ` Michael S. Tsirkin
2015-04-22 6:13 ` Igor Mammedov
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=20150421120641-mutt-send-email-mst@redhat.com \
--to=mst@redhat.com \
--cc=ghammer@redhat.com \
--cc=imammedo@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.