diff options
author | Greg Kurz <groug@kaod.org> | 2019-04-01 19:55:02 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-04-09 09:14:47 +1000 |
commit | 1c685a9026349752c3627aa24b090973e35b83c3 (patch) | |
tree | 8618f5915e18c85135e6b72507e1a300a6109e9a /hw/pci/pci_host.c | |
parent | 5263724b78f89cdea2354c8e92c53bac1b4641a3 (diff) | |
download | qemu-1c685a9026349752c3627aa24b090973e35b83c3.zip qemu-1c685a9026349752c3627aa24b090973e35b83c3.tar.gz qemu-1c685a9026349752c3627aa24b090973e35b83c3.tar.bz2 |
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>
Diffstat (limited to 'hw/pci/pci_host.c')
-rw-r--r-- | hw/pci/pci_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci/pci_host.c b/hw/pci/pci_host.c index 5f5345d..9d64b2e 100644 --- a/hw/pci/pci_host.c +++ b/hw/pci/pci_host.c @@ -54,7 +54,7 @@ static inline PCIDevice *pci_dev_find_by_addr(PCIBus *bus, uint32_t addr) static void pci_adjust_config_limit(PCIBus *bus, uint32_t *limit) { if (*limit > PCI_CONFIG_SPACE_SIZE) { - if (!pci_bus_is_express(bus)) { + if (!pci_bus_allows_extended_config_space(bus)) { *limit = PCI_CONFIG_SPACE_SIZE; return; } |