mirror of
https://github.com/qemu/qemu.git
synced 2024-12-15 07:23:52 +08:00
pci-host: Allow extended config space access for PowerNV PHB4 model
The PCIe extended configuration space on the device is not currently accessible to the host. if by default, it is still inaccessible for conventional for PCIe buses, add the current flag PCI_BUS_EXTENDED_CONFIG_SPACE on the root bus permits PCI-E extended config space access. Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20211109145053.43524-1-clombard@linux.vnet.ibm.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
d04aeb6862
commit
fa4b5eaaf9
@ -1205,6 +1205,7 @@ static void pnv_phb4_realize(DeviceState *dev, Error **errp)
|
|||||||
&phb->pci_mmio, &phb->pci_io,
|
&phb->pci_mmio, &phb->pci_io,
|
||||||
0, 4, TYPE_PNV_PHB4_ROOT_BUS);
|
0, 4, TYPE_PNV_PHB4_ROOT_BUS);
|
||||||
pci_setup_iommu(pci->bus, pnv_phb4_dma_iommu, phb);
|
pci_setup_iommu(pci->bus, pnv_phb4_dma_iommu, phb);
|
||||||
|
pci->bus->flags |= PCI_BUS_EXTENDED_CONFIG_SPACE;
|
||||||
|
|
||||||
/* Add a single Root port */
|
/* Add a single Root port */
|
||||||
qdev_prop_set_uint8(DEVICE(&phb->root), "chassis", phb->chip_id);
|
qdev_prop_set_uint8(DEVICE(&phb->root), "chassis", phb->chip_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user