hw/pxb: Add a bypass iommu property
commit91528f40ba3dda110927f11b47620bb24f8d601b
authorXingang Wang <wangxingang5@huawei.com>
Thu, 8 Jul 2021 12:55:12 +0000 (8 12:55 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 16 Jul 2021 15:10:45 +0000 (16 11:10 -0400)
treee062caccf8c5688aac611d3a70fb200466ede48c
parent2d64b7bbb2a2e945635633486ef9a060cb2c89bc
hw/pxb: Add a bypass iommu property

Add a bypass_iommu property for pci_expander_bridge, the property
is used to indicate whether pxb root bus will bypass iommu. By
default the bypass_iommu is disabled, and it can be enabled with:
qemu -device pxb-pcie,bus_nr=0x10,addr=0x1,bypass_iommu=true

Signed-off-by: Xingang Wang <wangxingang5@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <1625748919-52456-3-git-send-email-wangxingang5@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-bridge/pci_expander_bridge.c