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

2021-09-01 Thread Jason Wang
在 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

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

2021-08-05 Thread Caculo, Sriyash
, Sriyash Subject: Re: [PATCH 0/3] Disable vhost device IOTLB is IOMMU is not enabled [CAUTION: External Email] On Thu, Aug 05, 2021 at 09:46:10AM +0800, Jason Wang wrote: > > For the long term we may need to think about making device creation to be > > not > > ordered by user cmdline i

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

2021-08-04 Thread Peter Xu
On Thu, Aug 05, 2021 at 09:46:10AM +0800, Jason Wang wrote: > > For the long term we may need to think about making device creation to be > > not > > ordered by user cmdline input but still has a priority specified in the code > > itself. > > I fully agree. I'll see whether I can work on that

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

2021-08-04 Thread Jason Wang
在 2021/8/5 上午12:08, Peter Xu 写道: On Wed, Aug 04, 2021 at 11:48:00AM +0800, Jason Wang wrote: 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

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

2021-08-04 Thread Peter Xu
On Wed, Aug 04, 2021 at 11:48:00AM +0800, Jason Wang wrote: > 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

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

2021-08-03 Thread Chao Gao
On Wed, Aug 04, 2021 at 11:48:00AM +0800, Jason Wang wrote: >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

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

2021-08-03 Thread 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