Re: [PATCH 1/1] iommu/vt-d: Flush IOTLB for untrusted device in time

2019-04-12 Thread Joerg Roedel
On Fri, Apr 12, 2019 at 12:26:13PM +0800, Lu Baolu wrote: > drivers/iommu/intel-iommu.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) Applied, thanks. ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.o

[PATCH 1/1] iommu/vt-d: Flush IOTLB for untrusted device in time

2019-04-11 Thread Lu Baolu
By default, for performance consideration, Intel IOMMU driver won't flush IOTLB immediately after a buffer is unmapped. It schedules a thread and flushes IOTLB in a batched mode. This isn't suitable for untrusted device since it still can access the memory even if it isn't supposed to do so. Cc: A