]> Git Repo - qemu.git/commitdiff
pci-host: Allow extended config space access for PowerNV PHB4 model
authorChristophe Lombard <[email protected]>
Fri, 17 Dec 2021 16:57:13 +0000 (17:57 +0100)
committerCédric Le Goater <[email protected]>
Fri, 17 Dec 2021 16:57:13 +0000 (17:57 +0100)
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 <[email protected]>
Reviewed-by: Frederic Barrat <[email protected]>
Reviewed-by: Cédric Le Goater <[email protected]>
Message-Id: <20211109145053[email protected]>
Signed-off-by: Cédric Le Goater <[email protected]>
hw/pci-host/pnv_phb4.c

index 5c375a9f285dc74978aae8760451b94bb075ade3..40b793201a34bff54fdb59c34d701b37801789da 100644 (file)
@@ -1205,6 +1205,7 @@ static void pnv_phb4_realize(DeviceState *dev, Error **errp)
                                      &phb->pci_mmio, &phb->pci_io,
                                      0, 4, TYPE_PNV_PHB4_ROOT_BUS);
     pci_setup_iommu(pci->bus, pnv_phb4_dma_iommu, phb);
+    pci->bus->flags |= PCI_BUS_EXTENDED_CONFIG_SPACE;
 
     /* Add a single Root port */
     qdev_prop_set_uint8(DEVICE(&phb->root), "chassis", phb->chip_id);
This page took 0.02965 seconds and 4 git commands to generate.