Disable vhost device IOTLB is IOMMU is not enabled
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | virtio-bus: introduce iommu_enabled()hw/ include/ | +17 | 0 replies | |
| 2/3 | virtio-pci: implement iommu_enabled()hw/ | +14 | 0 replies | |
| 3/3 | vhost: correctly detect the enabling IOMMUhw/ | +1 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Chao Gao | Peter Xu | Sriyash Caculo |
|---|---|---|---|
| Series | T-b | A-b A-b | T-b |
| 1/3 | |||
| 2/3 | |||
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 0/3] Disable vhost device IOTLB is IOMMU is not enabled
Hi:
We currently try to enable device IOTLB when iommu_platform is set. This may lead unnecessary trasnsactions between qemu and vhost when vIOMMU is not used (which is the typical case for the encrypted VM).
So patch tries to use transport specific method to detect the enalbing of vIOMMU and enable the device IOTLB only if vIOMMU is enalbed.
Please review.
Thanks
Jason Wang (3):
virtio-bus: introduce iommu_enabled()
virtio-pci: implement iommu_enabled()
vhost: correctly detect the enabling IOMMU
hw/virtio/vhost.c | 2 +- hw/virtio/virtio-bus.c | 14 ++++++++++++++ hw/virtio/virtio-pci.c | 14 ++++++++++++++ include/hw/virtio/virtio-bus.h | 4 +++- 4 files changed, 32 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1