summary refs log tree commit diff stats
path: root/include/hw/pci/pci_host.h
diff options
context:
space:
mode:
authorXingang Wang <wangxingang5@huawei.com>2021-07-08 12:55:11 +0000
committerMichael S. Tsirkin <mst@redhat.com>2021-07-16 11:10:45 -0400
commit2d64b7bbb2a2e945635633486ef9a060cb2c89bc (patch)
tree0acc3b05c6b68d81ae923f1715aab953dd401a1c /include/hw/pci/pci_host.h
parent7395b3e3e70031b1efff7941cbef6a1ceb6f2ffd (diff)
downloadfocaccia-qemu-2d64b7bbb2a2e945635633486ef9a060cb2c89bc.tar.gz
focaccia-qemu-2d64b7bbb2a2e945635633486ef9a060cb2c89bc.zip
hw/pci/pci_host: Allow PCI host to bypass iommu
Add a new bypass_iommu property for PCI host and use it to check
whether devices attached to the PCI root bus will bypass iommu.
In pci_device_iommu_address_space(), check the property and
avoid getting iommu address space for devices bypass iommu.

Signed-off-by: Xingang Wang <wangxingang5@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <1625748919-52456-2-git-send-email-wangxingang5@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/pci/pci_host.h')
-rw-r--r--include/hw/pci/pci_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/pci/pci_host.h b/include/hw/pci/pci_host.h
index 52e038c019..c6f4eb4585 100644
--- a/include/hw/pci/pci_host.h
+++ b/include/hw/pci/pci_host.h
@@ -43,6 +43,7 @@ struct PCIHostState {
     uint32_t config_reg;
     bool mig_enabled;
     PCIBus *bus;
+    bool bypass_iommu;
 
     QLIST_ENTRY(PCIHostState) next;
 };