pci: Allow PCI bus subtypes to support extended config space accesses
commit1c685a9026349752c3627aa24b090973e35b83c3
authorGreg Kurz <groug@kaod.org>
Mon, 1 Apr 2019 17:55:02 +0000 (1 19:55 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 8 Apr 2019 23:14:47 +0000 (9 09:14 +1000)
tree8618f5915e18c85135e6b72507e1a300a6109e9a
parent5263724b78f89cdea2354c8e92c53bac1b4641a3
pci: Allow PCI bus subtypes to support extended config space accesses

Some PHB implementations, eg. PAPR used on pseries machine, act like
a regular PCI bus rather than a PCIe bus, but allow access to the
PCIe extended config space anyway.

Introduce a new PCI bus class method to modelize this behaviour and
use it when adjusting the config space size limit during accesses.

No behaviour change for existing PCI bus types.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155414130271.574858.4253514266378127489.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/pci/pci.c
hw/pci/pci_host.c
include/hw/pci/pci.h
include/hw/pci/pci_bus.h