qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/3] Disable vhost device IOTLB is IOMMU is not enabled


From: Jason Wang
Subject: Re: [PATCH 0/3] Disable vhost device IOTLB is IOMMU is not enabled
Date: Thu, 2 Sep 2021 13:46:34 +0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0


在 2021/8/4 上午11:48, Jason Wang 写道:
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.


Hi Michael:

Does this looks good for you? If yes, would you like to pick this series?

Thanks



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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]