From: Laszlo Ersek <lersek@redhat.com>
To: li guang <lig.fnst@cn.fujitsu.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
mst@redhat.com, qemu-devel@nongnu.org,
Bruce Rogers <brogers@suse.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/2] pc: reject do pc_acpi_init if acpi_enabled is false
Date: Wed, 15 May 2013 15:44:26 +0200 [thread overview]
Message-ID: <5193913A.8070701@redhat.com> (raw)
In-Reply-To: <1368608071.5142.55.camel@liguang.fnst.cn.fujitsu.com>
On 05/15/13 10:54, li guang wrote:
> 在 2013-05-15三的 10:38 +0200,Paolo Bonzini写道:
>> Il 15/05/2013 06:01, liguang ha scritto:
>>> Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
>>
>> --verbose, please.
>>
>> What problem does this patch fix?
>
> Oh, sorry to be lazy ...
> QEMU's option '-no-acpi' seems does not play
> a correct role, even started with this,
> ACPI tables will also be embedded into BIOS,
> and there's no different between with or without it
> for q35, as i can see.
>
> here, I'm assuming '-no-acpi' is to disable ACPI.
-no-acpi disables a block of code in pc_init1() [hw/i386/pc_piix.c],
namely piix4_pm_init() and smbus_eeprom_init().
pc_acpi_init() loads / exports a default DSDT for the boot firmware. If
the -acpitable switch is passed, then that code doesn't run.
I think disabling PM but keeping the default DSDT from SeaBIOS is a
valid use case; the DSDT seems to contain a bunch of non-PM
functionality (see src/acpi-dsdt*.dsl in SeaBIOS). The "-no-acpi" switch
is likely a misnomer (it should say "-no-acpi-pm" or some such), but in
any case I believe it should not prevent exporting the DSDT.
Currently you can prevent exporting the default DSDT for example with:
-acpitable sig=NONE,data=/dev/null
This will export a table with signature NONE, otherwise qemu-default
ACPI table headers, and no table contents. It will also prevent
pc_acpi_init() from running. See "AcpiTableOptions" in
"qapi-schema.json" and "hw/acpi/core.c".
Thanks,
Laszlo
next prev parent reply other threads:[~2013-05-15 13:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-15 4:01 [Qemu-devel] [PATCH 1/2] vl: boolize acpi_enabled liguang
2013-05-15 4:01 ` [Qemu-devel] [PATCH 2/2] pc: reject do pc_acpi_init if acpi_enabled is false liguang
2013-05-15 8:38 ` Paolo Bonzini
2013-05-15 8:54 ` li guang
2013-05-15 13:44 ` Laszlo Ersek [this message]
2013-05-16 0:14 ` li guang
2013-05-16 10:22 ` Laszlo Ersek
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=5193913A.8070701@redhat.com \
--to=lersek@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=brogers@suse.com \
--cc=kraxel@redhat.com \
--cc=lig.fnst@cn.fujitsu.com \
--cc=mst@redhat.com \
--cc=pbonzini@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 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).