From: Juan Quintela <quintela@redhat.com>
To: Isaku Yamahata <yamahata@valinux.co.jp>
Cc: qemu-devel@nongnu.org, mst@redhat.com
Subject: [Qemu-devel] Re: [PATCH v2 2/3] piix_pci: eliminate PIIX3State::pci_irq_levels
Date: Fri, 18 Mar 2011 16:31:34 +0100 [thread overview]
Message-ID: <m3sjuk5tt5.fsf@trasno.org> (raw)
In-Reply-To: <0a5deb668716e000b11c12b4b2668f86cbc604da.1300402145.git.yamahata@valinux.co.jp> (Isaku Yamahata's message of "Fri, 18 Mar 2011 07:51:33 +0900")
Isaku Yamahata <yamahata@valinux.co.jp> wrote:
> PIIX3State::pci_irq_levels are redundant which is already tracked by
> PCIBus layer. So eliminate them.
1st of all: Hurray to remove the entable between PIIX3State & i440fx.
> Cc: Michael S. Tsirkin <mst@redhat.com>
> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
> ---
> hw/piix_pci.c | 31 +++++++++++++++++++++----------
> 1 files changed, 21 insertions(+), 10 deletions(-)
>
> diff --git a/hw/piix_pci.c b/hw/piix_pci.c
> index 358da58..a1d1f55 100644
> --- a/hw/piix_pci.c
> +++ b/hw/piix_pci.c
> @@ -39,7 +39,7 @@ typedef PCIHostState I440FXState;
>
> typedef struct PIIX3State {
> PCIDevice dev;
> - int pci_irq_levels[4];
> + int32_t dummy_for_save_load_compat[4];
Rest of devices normally call it:
int32_t pci_irq_levels_vmstate[4];
Putting it as the last member of the struct helps (sometimes) with cache
performance issues.
Rest look nice. Thanks.
next prev parent reply other threads:[~2011-03-18 15:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-17 22:51 [Qemu-devel] [PATCH v2 0/3] piix_pci: optimize irq data path Isaku Yamahata
2011-03-17 22:51 ` [Qemu-devel] [PATCH v2 1/3] pci: add accessor function to get irq levels Isaku Yamahata
2011-03-17 22:51 ` [Qemu-devel] [PATCH v2 2/3] piix_pci: eliminate PIIX3State::pci_irq_levels Isaku Yamahata
2011-03-18 15:31 ` Juan Quintela [this message]
2011-03-17 22:51 ` [Qemu-devel] [PATCH v2 3/3] piix_pci: optimize set irq path Isaku Yamahata
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=m3sjuk5tt5.fsf@trasno.org \
--to=quintela@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--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 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.