diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2017-03-14 11:54:17 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-03-14 11:54:17 +1100 |
commit | 82516263cead40ac240ae5fb2a6f5fc0fda9614c (patch) | |
tree | f55ae1437125d4e0cf8c342983970f381589a1a5 /hw/ppc/spapr.c | |
parent | 38a61d34875335717f22e3a0eb1e0d5df4f62def (diff) | |
download | qemu-82516263cead40ac240ae5fb2a6f5fc0fda9614c.zip qemu-82516263cead40ac240ae5fb2a6f5fc0fda9614c.tar.gz qemu-82516263cead40ac240ae5fb2a6f5fc0fda9614c.tar.bz2 |
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 'hw/ppc/spapr.c')
-rw-r--r-- | hw/ppc/spapr.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index c3bb991..6ee566d 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -3163,8 +3163,13 @@ DEFINE_SPAPR_MACHINE(2_9, "2.9", true); /* * pseries-2.8 */ -#define SPAPR_COMPAT_2_8 \ - HW_COMPAT_2_8 +#define SPAPR_COMPAT_2_8 \ + HW_COMPAT_2_8 \ + { \ + .driver = TYPE_SPAPR_PCI_HOST_BRIDGE, \ + .property = "pcie-extended-configuration-space", \ + .value = "off", \ + }, static void spapr_machine_2_8_instance_options(MachineState *machine) { |