OSDN Git Service

pseries: Don't expose PCIe extended config space on older machine types
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 14 Mar 2017 00:54:17 +0000 (11:54 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 14 Mar 2017 00:54:17 +0000 (11:54 +1100)
commit82516263cead40ac240ae5fb2a6f5fc0fda9614c
treef55ae1437125d4e0cf8c342983970f381589a1a5
parent38a61d34875335717f22e3a0eb1e0d5df4f62def
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>
hw/ppc/spapr.c
hw/ppc/spapr_pci.c
include/hw/pci-host/spapr.h