From: Eric Blake <eblake@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Cc: marcel@redhat.com, imammedo@redhat.com, ehabkost@redhat.com,
mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH 2/2] pc: Eliminate PcPciInfo
Date: Wed, 15 Jun 2016 13:22:22 -0600 [thread overview]
Message-ID: <5761AAEE.80407@redhat.com> (raw)
In-Reply-To: <1466013391-16028-3-git-send-email-armbru@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1432 bytes --]
On 06/15/2016 11:56 AM, Markus Armbruster wrote:
> PcPciInfo has two (ill-named) members: Range w32 is the PCI hole, and
> w64 is the PCI64 hole.
>
> Three users:
>
> * I440FXState and MCHPCIState have a member PcPciInfo pci_info, but
> only pci_info.w32 is actually used. This is confusing. Replace by
> Range pci_hole.
>
> * acpi_build() uses auto PcPciInfo pci_info to forward both PCI holes
> from acpi_get_pci_info() to build_dsdt(). Replace by two variables
> Range pci_hole, pci_hole64. Rename acpi_get_pci_info() to
> acpi_get_pci_holes().
>
> PcPciInfo is now unused; drop it.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> hw/i386/acpi-build.c | 43 ++++++++++++++++++++++---------------------
> hw/pci-host/piix.c | 10 +++++-----
> hw/pci-host/q35.c | 12 ++++++------
> include/hw/i386/pc.h | 5 -----
> include/hw/pci-host/q35.h | 2 +-
> 5 files changed, 34 insertions(+), 38 deletions(-)
>
> +++ b/include/hw/i386/pc.h
> @@ -148,11 +148,6 @@ struct PCMachineClass {
>
> /* PC-style peripherals (also used by other machines). */
>
> -typedef struct PcPciInfo {
> - Range w32;
> - Range w64;
> -} PcPciInfo;
Confusing indeed. Good riddance.
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2016-06-15 19:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-15 17:56 [Qemu-devel] [PATCH 0/2] Clean up around the PCI holes Markus Armbruster
2016-06-15 17:56 ` [Qemu-devel] [PATCH 1/2] piix: Set I440FXState member pci_info.w32 in one place Markus Armbruster
2016-06-15 19:16 ` Eric Blake
2016-06-16 7:26 ` Marcel Apfelbaum
2016-06-15 17:56 ` [Qemu-devel] [PATCH 2/2] pc: Eliminate PcPciInfo Markus Armbruster
2016-06-15 19:22 ` Eric Blake [this message]
2016-06-16 7:30 ` Marcel Apfelbaum
2016-06-30 5:18 ` [Qemu-devel] [PATCH 0/2] Clean up around the PCI holes Markus Armbruster
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=5761AAEE.80407@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=marcel@redhat.com \
--cc=mst@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).