OSDN Git Service

spapr_pci: Advertise access to PCIe extended config space
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 1 Mar 2017 05:23:12 +0000 (16:23 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 3 Mar 2017 00:30:59 +0000 (11:30 +1100)
commitbb998645284924db6da93e777af5f29ef2f3c0a8
tree466de4a0ec4356e64014c407f686efada7e91ca7
parentda82c73a950a99b9d6c1ec3eba3d1d6034effd43
spapr_pci: Advertise access to PCIe extended config space

The (paravirtual) PCI host bridge on the 'pseries' machine in most
regards acts like a regular PCI bus, rather than a PCIe bus.  Despite
this, though, it does allow access to the PCIe extended config space.

We already implemented the RTAS methods to allow this access.. but
forgot to put the markers into the device tree so that guest's know it
is there.  This adds them in.

With this, a pseries guest is able to view extended config space on
(for example an e1000e device.  This should be enough to allow guests
to use at least some PCIe devices.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_pci.c