From: Gerd Hoffmann <kraxel@redhat.com>
To: li guang <lig.fnst@cn.fujitsu.com>
Cc: "Anthony Liguori" <aliguori@us.ibm.com>,
"Stefan Berger" <stefanb@linux.vnet.ibm.com>,
"Joel Schopp" <jschopp@linux.vnet.ibm.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
qemu-devel@nongnu.org, "Bruce Rogers" <brogers@suse.com>,
"Isaku Yamahata" <yamahata@valinux.co.jp>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH 2/4] acpi/gpe: expand bits of gpe register
Date: Mon, 27 May 2013 11:00:57 +0200 [thread overview]
Message-ID: <51A320C9.9050705@redhat.com> (raw)
In-Reply-To: <1369360963.5142.207.camel@liguang.fnst.cn.fujitsu.com>
On 05/24/13 04:02, li guang wrote:
> 在 2013-05-24五的 10:24 +0900,Isaku Yamahata写道:
>> On Wed, May 22, 2013 at 01:37:41PM +0800, li guang wrote:
>>> 在 2013-05-22三的 14:28 +0900,Isaku Yamahata写道:
>>>> Why?
>>>> And it breaks pointer operation like
>>>
>>> the fact is I can't guess why gpe->sts is defined uint8_t
>>> but the real hardware is 32-bit width.
>>
>> Which section of ACPI spec?
>
> seems ACPI SPEC does not define the length,
> but, real hardware does, e.g. ICH9.
Still fail to see what exactly you are trying to fix.
qemu can continue work with uint8_t internally just fine. memory api
will split dword access by guests into 4 byte accesses. ich9_gpe_ops
looks correct.
>>> I expand it to 32 because the future usage for me will
>>> access bit beyond 8.
gpe->sts is an array, so you already have more than 8 bits.
>> I don't have strong opinion wheter uint8_t or uint32_t.
>> But the current patch is broken as the pointer offset
>> operation needs to be fixed.
Oh, and it breaks live migration too.
cheers,
Gerd
next prev parent reply other threads:[~2013-05-27 9:01 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 3:46 [Qemu-devel] [PATCH 0/4] add ACPI Embedded Controller liguang
2013-05-22 3:46 ` [Qemu-devel] [PATCH 1/4] acpi: add ACPI Embedded Controller support liguang
2013-05-22 3:46 ` [Qemu-devel] [PATCH 2/4] acpi/gpe: expand bits of gpe register liguang
2013-05-22 5:28 ` Isaku Yamahata
2013-05-22 5:37 ` li guang
2013-05-24 1:24 ` Isaku Yamahata
2013-05-24 2:02 ` li guang
2013-05-27 9:00 ` Gerd Hoffmann [this message]
2013-05-28 0:32 ` li guang
2013-05-27 9:06 ` Gerd Hoffmann
2013-05-22 3:46 ` [Qemu-devel] [PATCH 3/4] ich9: add notifer for ec to generate sci liguang
2013-05-27 20:21 ` Michael S. Tsirkin
2013-05-28 0:23 ` li guang
2013-05-28 6:40 ` Michael S. Tsirkin
2013-05-28 6:44 ` li guang
2013-05-22 3:46 ` [Qemu-devel] [PATCH 4/4][seabios] ec: add ASL for ACPI Embedded Controller liguang
2013-05-23 3:03 ` li guang
2013-05-24 0:34 ` [Qemu-devel] [PATCH 0/4] add " li guang
2013-05-24 11:45 ` Michael S. Tsirkin
2013-05-27 0:20 ` li guang
2013-05-27 0:51 ` Anthony Liguori
2013-05-27 1:22 ` li guang
2013-05-27 11:45 ` Igor Mammedov
2013-05-28 0:28 ` li guang
2013-05-28 8:16 ` Igor Mammedov
2013-05-28 8:34 ` li guang
2013-05-28 9:38 ` Igor Mammedov
2013-05-29 0:23 ` li guang
2013-05-27 20:23 ` Michael S. Tsirkin
2013-05-28 0:21 ` li guang
2013-05-28 6:31 ` Michael S. Tsirkin
2013-05-28 6:40 ` li guang
2013-05-28 6:48 ` Michael S. Tsirkin
2013-05-28 8:26 ` Igor Mammedov
2013-05-28 8:40 ` li guang
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=51A320C9.9050705@redhat.com \
--to=kraxel@redhat.com \
--cc=afaerber@suse.de \
--cc=aliguori@us.ibm.com \
--cc=brogers@suse.com \
--cc=jschopp@linux.vnet.ibm.com \
--cc=lig.fnst@cn.fujitsu.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanb@linux.vnet.ibm.com \
--cc=yamahata@valinux.co.jp \
/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).