[Qemu-devel] [RFC 0/5] Assorted PCI/PCIe cleanups cleanups

David Gibson posted 5 patches 6 years, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20171003091423.28704-1-david@gibson.dropbear.id.au
Test checkpatch passed
Test docker passed
Test s390x passed
hw/acpi/pcihp.c                     |  1 -
hw/alpha/typhoon.c                  |  8 ++--
hw/i386/acpi-build.c                |  1 -
hw/i386/amd_iommu.h                 |  1 -
hw/i386/intel_iommu.c               |  1 -
hw/i386/pc.c                        |  1 -
hw/isa/lpc_ich9.c                   |  1 -
hw/mips/gt64xxx_pci.c               | 12 ++---
hw/pci-bridge/dec.c                 |  1 -
hw/pci-bridge/pci_bridge_dev.c      |  1 -
hw/pci-bridge/pci_expander_bridge.c | 11 +----
hw/pci-bridge/pcie_pci_bridge.c     |  1 -
hw/pci-host/apb.c                   | 11 ++---
hw/pci-host/bonito.c                |  8 ++--
hw/pci-host/gpex.c                  |  6 +--
hw/pci-host/grackle.c               | 14 +++---
hw/pci-host/piix.c                  |  4 +-
hw/pci-host/ppce500.c               |  6 +--
hw/pci-host/prep.c                  |  5 +-
hw/pci-host/q35.c                   |  7 +--
hw/pci-host/uninorth.c              | 24 +++++-----
hw/pci-host/versatile.c             |  7 ++-
hw/pci-host/xilinx-pcie.c           |  6 +--
hw/pci/pci.c                        | 71 ++++++++++++++--------------
hw/pci/pci_bridge.c                 |  1 -
hw/pci/pci_host.c                   |  1 -
hw/pci/pcie.c                       |  1 -
hw/pci/pcie_aer.c                   |  1 -
hw/pci/shpc.c                       |  1 -
hw/ppc/ppc4xx_pci.c                 |  6 +--
hw/ppc/spapr_pci.c                  |  9 ++--
hw/s390x/s390-pci-bus.c             |  9 ++--
hw/sh4/sh_pci.c                     | 12 ++---
include/hw/i386/ich9.h              |  1 -
include/hw/pci-host/xilinx-pcie.h   |  2 +-
include/hw/pci/pci.h                | 91 ++++++++++++++++++++++++++++-------
include/hw/pci/pci_bridge.h         | 47 +++++++++++++++++++
include/hw/pci/pci_bus.h            | 94 -------------------------------------
include/hw/pci/pcie_port.h          |  1 -
39 files changed, 237 insertions(+), 249 deletions(-)
delete mode 100644 include/hw/pci/pci_bus.h
[Qemu-devel] [RFC 0/5] Assorted PCI/PCIe cleanups cleanups
Posted by David Gibson 6 years, 5 months ago
I've been reworking my patches to consolidate the handling of PCI/PCIe
"hybrid" devices based on feedback from my earlier series.  I'm still
wrestling with some problems here, but along the way I've made some
cleanups which I think stand on their own.  So, here they are.

I built these on top of Eduardo's series to advertise PCI and PCIe
capability of devices via interface names.  I don't think I
fundamentally rely on anything in there, but if there are conflicts
against master, that'd be why.

David Gibson (5):
  pci: Rename root bus initialization functions for clarity
  pci: Move bridge data structures from pci_bus.h to pci_bridge.h
  pci: Fold pci_bus.h into pci.h
  pci: Simplify pci_bus_is_root()
  pcie: Don't allow extended config space access via conventional PCI
    bridges

 hw/acpi/pcihp.c                     |  1 -
 hw/alpha/typhoon.c                  |  8 ++--
 hw/i386/acpi-build.c                |  1 -
 hw/i386/amd_iommu.h                 |  1 -
 hw/i386/intel_iommu.c               |  1 -
 hw/i386/pc.c                        |  1 -
 hw/isa/lpc_ich9.c                   |  1 -
 hw/mips/gt64xxx_pci.c               | 12 ++---
 hw/pci-bridge/dec.c                 |  1 -
 hw/pci-bridge/pci_bridge_dev.c      |  1 -
 hw/pci-bridge/pci_expander_bridge.c | 11 +----
 hw/pci-bridge/pcie_pci_bridge.c     |  1 -
 hw/pci-host/apb.c                   | 11 ++---
 hw/pci-host/bonito.c                |  8 ++--
 hw/pci-host/gpex.c                  |  6 +--
 hw/pci-host/grackle.c               | 14 +++---
 hw/pci-host/piix.c                  |  4 +-
 hw/pci-host/ppce500.c               |  6 +--
 hw/pci-host/prep.c                  |  5 +-
 hw/pci-host/q35.c                   |  7 +--
 hw/pci-host/uninorth.c              | 24 +++++-----
 hw/pci-host/versatile.c             |  7 ++-
 hw/pci-host/xilinx-pcie.c           |  6 +--
 hw/pci/pci.c                        | 71 ++++++++++++++--------------
 hw/pci/pci_bridge.c                 |  1 -
 hw/pci/pci_host.c                   |  1 -
 hw/pci/pcie.c                       |  1 -
 hw/pci/pcie_aer.c                   |  1 -
 hw/pci/shpc.c                       |  1 -
 hw/ppc/ppc4xx_pci.c                 |  6 +--
 hw/ppc/spapr_pci.c                  |  9 ++--
 hw/s390x/s390-pci-bus.c             |  9 ++--
 hw/sh4/sh_pci.c                     | 12 ++---
 include/hw/i386/ich9.h              |  1 -
 include/hw/pci-host/xilinx-pcie.h   |  2 +-
 include/hw/pci/pci.h                | 91 ++++++++++++++++++++++++++++-------
 include/hw/pci/pci_bridge.h         | 47 +++++++++++++++++++
 include/hw/pci/pci_bus.h            | 94 -------------------------------------
 include/hw/pci/pcie_port.h          |  1 -
 39 files changed, 237 insertions(+), 249 deletions(-)
 delete mode 100644 include/hw/pci/pci_bus.h

-- 
2.13.6