diff options
author | David Gibson | 2017-03-14 01:54:17 +0100 |
---|---|---|
committer | David Gibson | 2017-03-14 01:54:17 +0100 |
commit | 82516263cead40ac240ae5fb2a6f5fc0fda9614c (patch) | |
tree | f55ae1437125d4e0cf8c342983970f381589a1a5 /include/hw/pci-host/spapr.h | |
parent | target/ppc: fix cpu_ov setting for 32-bit (diff) | |
download | qemu-82516263cead40ac240ae5fb2a6f5fc0fda9614c.tar.gz qemu-82516263cead40ac240ae5fb2a6f5fc0fda9614c.tar.xz qemu-82516263cead40ac240ae5fb2a6f5fc0fda9614c.zip |
pseries: Don't expose PCIe extended config space on older machine types
bb9986452 "spapr_pci: Advertise access to PCIe extended config space"
allowed guests to access the extended config space of PCI Express devices
via the PAPR interfaces, even though the paravirtualized bus mostly acts
like plain PCI.
However, that patch enabled access unconditionally, including for existing
machine types, which is an unwise change in behaviour. This patch limits
the change to pseries-2.9 (and later) machine types.
Suggested-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/pci-host/spapr.h')
-rw-r--r-- | include/hw/pci-host/spapr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/pci-host/spapr.h b/include/hw/pci-host/spapr.h index dfa76143f3..1c2e970da2 100644 --- a/include/hw/pci-host/spapr.h +++ b/include/hw/pci-host/spapr.h @@ -80,6 +80,8 @@ struct sPAPRPHBState { uint32_t numa_node; + bool pcie_ecs; /* Allow access to PCIe extended config space? */ + /* Fields for migration compatibility hacks */ bool pre_2_8_migration; uint32_t mig_liobn; |