]> Git Repo - qemu.git/commit - hw/scsi/vmw_pvscsi.c
pci: Eliminate redundant PCIDevice::bus pointer
authorDavid Gibson <[email protected]>
Wed, 29 Nov 2017 08:46:27 +0000 (19:46 +1100)
committerMichael S. Tsirkin <[email protected]>
Tue, 5 Dec 2017 17:13:45 +0000 (19:13 +0200)
commitfd56e0612b6454a282fa6a953fdb09281a98c589
tree28a829abaa964f8ed4834c2ed10441e2878ad2c8
parentcdc57472dcc2ddc440545bde26791a11b42232b6
pci: Eliminate redundant PCIDevice::bus pointer

The bus pointer in PCIDevice is basically redundant with QOM information.
It's always initialized to the qdev_get_parent_bus(), the only difference
is the type.

Therefore this patch eliminates the field, instead creating a pci_get_bus()
helper to do the type mangling to derive it conveniently from the QOM
Device object underneath.

Signed-off-by: David Gibson <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Eduardo Habkost <[email protected]>
Reviewed-by: Marcel Apfelbaum <[email protected]>
Reviewed-by: Peter Xu <[email protected]>
20 files changed:
hw/acpi/pcihp.c
hw/acpi/piix4.c
hw/i386/xen/xen_platform.c
hw/isa/lpc_ich9.c
hw/net/vmxnet3.c
hw/pci-bridge/pci_expander_bridge.c
hw/pci-host/piix.c
hw/pci-host/versatile.c
hw/pci/pci.c
hw/pci/pci_bridge.c
hw/pci/pcie.c
hw/pci/pcie_aer.c
hw/ppc/spapr_pci.c
hw/s390x/s390-pci-bus.c
hw/scsi/vmw_pvscsi.c
hw/usb/hcd-xhci.c
hw/vfio/pci.c
hw/virtio/virtio-pci.c
hw/xen/xen_pt.c
include/hw/pci/pci.h
This page took 0.031696 seconds and 4 git commands to generate.