From: Richard Henderson <rth@twiddle.net>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Anthony Liguori" <aliguori@us.ibm.com>,
"Stefan Weil" <sw@weilnetz.de>,
qemu-devel@nongnu.org, "Alexander Graf" <agraf@suse.de>,
"Blue Swirl" <blauwirbel@gmail.com>,
"Avik Sil" <aviksil@linux.vnet.ibm.com>,
"Andreas Färber" <andreas.faerber@web.de>,
qemu-ppc@nongnu.org, "Paul Brook" <paul@codesourcery.com>,
"Scott Wood" <scottwood@freescale.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Aurelien Jarno" <aurelien@aurel32.net>,
"David Gibson" <david@gibson.dropbear.id.au>
Subject: Re: [Qemu-devel] [PULL 18/21] pci: Add root bus parameter to pci_nic_init()
Date: Thu, 20 Jun 2013 10:07:23 -0700 [thread overview]
Message-ID: <51C336CB.5080202@twiddle.net> (raw)
In-Reply-To: <1371730033-5554-19-git-send-email-mst@redhat.com>
On 06/20/2013 06:11 AM, Michael S. Tsirkin wrote:
> From: David Gibson <david@gibson.dropbear.id.au>
>
> At present, pci_nic_init() and pci_nic_init_nofail() assume that they will
> only create a NIC under the primary PCI root. As we add support for
> multiple PCI roots, that may no longer be the case. This patch adds a root
> bus parameter to pci_nic_init() (and updates callers accordingly) to allow
> the machine init code using it to specify the right PCI root for NICs
> created by old-style -net nic parameters. NICs created new-style, with
> -device can of course be put anywhere.
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> hw/alpha/dp264.c | 2 +-
> hw/arm/realview.c | 6 ++++--
> hw/arm/versatilepb.c | 2 +-
> hw/i386/pc.c | 2 +-
> hw/mips/mips_fulong2e.c | 6 +++---
> hw/mips/mips_malta.c | 6 +++---
> hw/pci/pci-hotplug-old.c | 3 ++-
> hw/pci/pci.c | 10 ++++++----
> hw/ppc/e500.c | 2 +-
> hw/ppc/mac_newworld.c | 2 +-
> hw/ppc/mac_oldworld.c | 2 +-
> hw/ppc/ppc440_bamboo.c | 2 +-
> hw/ppc/prep.c | 2 +-
> hw/ppc/spapr.c | 2 +-
> hw/sh4/r2d.c | 5 ++++-
> hw/sparc64/sun4u.c | 2 +-
> include/hw/pci/pci.h | 6 ++++--
> 17 files changed, 36 insertions(+), 26 deletions(-)
Acked-by: Richard Henderson <rth@twiddle.net>
r~
next prev parent reply other threads:[~2013-06-20 17:07 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-20 13:08 [Qemu-devel] [PULL 00/21] pci,net,misc enhancements Michael S. Tsirkin
2013-06-20 13:08 ` [Qemu-devel] [PULL 01/21] range: add Range structure Michael S. Tsirkin
2013-06-20 13:08 ` [Qemu-devel] [PULL 03/21] pc: pass PCI hole ranges to Guests Michael S. Tsirkin
2013-06-20 13:08 ` [Qemu-devel] [PULL 04/21] pc_piix: cleanup init compat handling Michael S. Tsirkin
2013-06-20 13:10 ` [Qemu-devel] [PULL 05/21] e1000: cleanup process_tx_desc Michael S. Tsirkin
2013-06-20 13:10 ` [Qemu-devel] [PULL 06/21] kvm: zero-initialize KVM_SET_GSI_ROUTING input Michael S. Tsirkin
2013-06-20 13:10 ` [Qemu-devel] [PULL 07/21] kvm: skip system call when msi route is unchanged Michael S. Tsirkin
2013-06-20 13:10 ` [Qemu-devel] [PULL 08/21] MAINTAINERS: s/Marcelo/Paolo/ Michael S. Tsirkin
2013-06-20 13:10 ` [Qemu-devel] [PULL 09/21] pvpanic: initialization cleanup Michael S. Tsirkin
2013-06-20 13:10 ` [Qemu-devel] [PULL 10/21] pvpanic: fix fwcfg for big endian hosts Michael S. Tsirkin
2013-06-20 13:10 ` [Qemu-devel] [PULL 11/21] net: add support of mac-programming over macvtap in QEMU side Michael S. Tsirkin
2013-06-20 13:11 ` [Qemu-devel] [PULL 13/21] pci: Move pci_read_devaddr to pci-hotplug-old.c Michael S. Tsirkin
2013-06-20 13:11 ` [Qemu-devel] [PULL 14/21] pci: Abolish pci_find_root_bus() Michael S. Tsirkin
2013-06-20 13:11 ` [Qemu-devel] [PULL 15/21] pci: Use helper to find device's root bus in pci_find_domain() Michael S. Tsirkin
2013-06-20 13:11 ` [Qemu-devel] [PULL 16/21] pci: Replace pci_find_domain() with more general pci_root_bus_path() Michael S. Tsirkin
2013-06-20 13:11 ` [Qemu-devel] [PULL 17/21] pci: Add root bus argument to pci_get_bus_devfn() Michael S. Tsirkin
2013-06-20 13:11 ` [Qemu-devel] [PULL 18/21] pci: Add root bus parameter to pci_nic_init() Michael S. Tsirkin
2013-06-20 17:07 ` Richard Henderson [this message]
2013-06-20 13:11 ` [Qemu-devel] [PULL 19/21] pci: Simpler implementation of primary PCI bus Michael S. Tsirkin
2013-06-20 13:11 ` [Qemu-devel] [PULL 20/21] pci: Remove domain from PCIHostBus Michael S. Tsirkin
2013-06-20 13:12 ` [Qemu-devel] [PULL 21/21] pci: Fold host_buses list into PCIHostState functionality Michael S. Tsirkin
2013-06-20 19:02 ` [Qemu-devel] [PULL 00/21] pci,net,misc enhancements Anthony Liguori
2013-06-20 20:34 ` Gleb Natapov
2013-06-20 20:46 ` Anthony Liguori
2013-06-21 13:10 ` Anthony Liguori
2013-06-23 11:38 ` Michael S. Tsirkin
2013-06-24 6:43 ` Amos Kong
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=51C336CB.5080202@twiddle.net \
--to=rth@twiddle.net \
--cc=agraf@suse.de \
--cc=aliguori@us.ibm.com \
--cc=andreas.faerber@web.de \
--cc=aurelien@aurel32.net \
--cc=aviksil@linux.vnet.ibm.com \
--cc=blauwirbel@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=mst@redhat.com \
--cc=paul@codesourcery.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=scottwood@freescale.com \
--cc=sw@weilnetz.de \
/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).