All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Disable vhost device IOTLB is IOMMU is not enabled
@ 2021-08-04  3:48 Jason Wang
  2021-08-04  3:48 ` [PATCH 1/3] virtio-bus: introduce iommu_enabled() Jason Wang
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Jason Wang @ 2021-08-04  3:48 UTC (permalink / raw)
  To: qemu-devel
  Cc: mst, Jason Wang, Wei.Huang2, dgilbert, peterx, Sriyash.Caculo,
	pbonzini, chao.gao

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(-)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-09-02  5:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-04  3:48 [PATCH 0/3] Disable vhost device IOTLB is IOMMU is not enabled Jason Wang
2021-08-04  3:48 ` [PATCH 1/3] virtio-bus: introduce iommu_enabled() Jason Wang
2021-08-04  3:48 ` [PATCH 2/3] virtio-pci: implement iommu_enabled() Jason Wang
2021-08-04  3:48 ` [PATCH 3/3] vhost: correctly detect the enabling IOMMU Jason Wang
2021-08-04  5:57 ` [PATCH 0/3] Disable vhost device IOTLB is IOMMU is not enabled Chao Gao
2021-08-04 16:08 ` Peter Xu
2021-08-05  1:46   ` Jason Wang
2021-08-05  3:08     ` Peter Xu
2021-08-05  7:26       ` Caculo, Sriyash
2021-09-02  5:46 ` Jason Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.