]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/e500.c
pci: Add root bus parameter to pci_nic_init()
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 6 Jun 2013 08:48:51 +0000 (18:48 +1000)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 7 Jul 2013 20:10:57 +0000 (23:10 +0300)
commit29b358f93a48a415853d11fc9b02f711b5ec8f76
treeb09d6014da1942fe62614830996552dec90fd18d
parent85c6e4fabb4c26e5cd8a024415ed2f5bcdd578db
pci: Add root bus parameter to pci_nic_init()

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>
17 files changed:
hw/alpha/dp264.c
hw/arm/realview.c
hw/arm/versatilepb.c
hw/i386/pc.c
hw/mips/mips_fulong2e.c
hw/mips/mips_malta.c
hw/pci/pci-hotplug-old.c
hw/pci/pci.c
hw/ppc/e500.c
hw/ppc/mac_newworld.c
hw/ppc/mac_oldworld.c
hw/ppc/ppc440_bamboo.c
hw/ppc/prep.c
hw/ppc/spapr.c
hw/sh4/r2d.c
hw/sparc64/sun4u.c
include/hw/pci/pci.h