From 6a3b59ab9c7dc00331c21346052dfa6a0df45aa3 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 23 Mar 2020 15:59:11 +0100 Subject: pci: add mmconfig support Add support for pci config space access via mmconfig bar. Enable for qemu q35 chipset. Main advantage is that we need only one instead of two io operations per config space access, which translates to one instead of two vmexits for virtualization. Signed-off-by: Gerd Hoffmann Message-id: 20200323145911.22319-3-kraxel@redhat.com --- src/fw/pciinit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fw') diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c index d5e87f00..d25931bb 100644 --- a/src/fw/pciinit.c +++ b/src/fw/pciinit.c @@ -480,6 +480,7 @@ static void mch_mmconfig_setup(u16 bdf) pci_config_writel(bdf, Q35_HOST_BRIDGE_PCIEXBAR, 0); pci_config_writel(bdf, Q35_HOST_BRIDGE_PCIEXBAR + 4, upper); pci_config_writel(bdf, Q35_HOST_BRIDGE_PCIEXBAR, lower); + pci_enable_mmconfig(Q35_HOST_BRIDGE_PCIEXBAR_ADDR, "q35"); } static void mch_mem_addr_setup(struct pci_device *dev, void *arg) -- cgit