Re: [PATCH v2] vhost: Warn if DEVIOTLB_UNMAP is not supported and ats is set

2022-10-20 Thread Jason Wang
On Thu, Oct 20, 2022 at 9:03 PM Eric Auger wrote: > > Hi Jason, > > On 10/20/22 05:58, Jason Wang wrote: > > On Wed, Oct 19, 2022 at 8:27 PM Eric Auger wrote: > >> Since b68ba1ca5767 ("memory: Add IOMMU_NOTIFIER_DEVIOTLB_UNMAP > >> IOMMUTLBNotificationType"), vhost attempts to register DEVIOTLB_U

Re: [PATCH v2] vhost: Warn if DEVIOTLB_UNMAP is not supported and ats is set

2022-10-20 Thread Jean-Philippe Brucker
Hi, On Thu, Oct 20, 2022 at 03:03:10PM +0200, Eric Auger wrote: > Hi Jason, > > On 10/20/22 05:58, Jason Wang wrote: > > On Wed, Oct 19, 2022 at 8:27 PM Eric Auger wrote: > >> Since b68ba1ca5767 ("memory: Add IOMMU_NOTIFIER_DEVIOTLB_UNMAP > >> IOMMUTLBNotificationType"), vhost attempts to regist

Re: [PATCH v2] vhost: Warn if DEVIOTLB_UNMAP is not supported and ats is set

2022-10-20 Thread Eric Auger
Hi Jason, On 10/20/22 05:58, Jason Wang wrote: > On Wed, Oct 19, 2022 at 8:27 PM Eric Auger wrote: >> Since b68ba1ca5767 ("memory: Add IOMMU_NOTIFIER_DEVIOTLB_UNMAP >> IOMMUTLBNotificationType"), vhost attempts to register DEVIOTLB_UNMAP >> notifier. This latter is supported by the intel-iommu wh

Re: [PATCH v2] vhost: Warn if DEVIOTLB_UNMAP is not supported and ats is set

2022-10-19 Thread Jason Wang
On Wed, Oct 19, 2022 at 8:27 PM Eric Auger wrote: > > Since b68ba1ca5767 ("memory: Add IOMMU_NOTIFIER_DEVIOTLB_UNMAP > IOMMUTLBNotificationType"), vhost attempts to register DEVIOTLB_UNMAP > notifier. This latter is supported by the intel-iommu which supports > device-iotlb if the corresponding op

[PATCH v2] vhost: Warn if DEVIOTLB_UNMAP is not supported and ats is set

2022-10-19 Thread Eric Auger
Since b68ba1ca5767 ("memory: Add IOMMU_NOTIFIER_DEVIOTLB_UNMAP IOMMUTLBNotificationType"), vhost attempts to register DEVIOTLB_UNMAP notifier. This latter is supported by the intel-iommu which supports device-iotlb if the corresponding option is set. Then 958ec334bca3 ("vhost: Unbreak SMMU and virt