Skip to content

Disable vhost device IOTLB is IOMMU is not enabled

Jason Wang qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtio-bus: introduce iommu_enabled()hw/virtio/virtio-bus.c include/hw/virtio/virtio-bus.h+17 -10 replies
2/3virtio-pci: implement iommu_enabled()hw/virtio/virtio-pci.c+14 -00 replies
3/3vhost: correctly detect the enabling IOMMUhw/virtio/vhost.c+1 -10 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.

PatchChao GaoPeter XuSriyash Caculo
SeriesT-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.

Read the v1 thread

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