Re: [PATCH 4/7] iommu/amd: make sure TLB to be flushed before IOVA freed

2018-06-04 Thread Leizhen (ThunderTown)
On 2018/5/31 21:04, Robin Murphy wrote: > On 31/05/18 08:42, Zhen Lei wrote: >> Although the mapping has already been removed in the page table, it maybe >> still exist in TLB. Suppose the freed IOVAs is reused by others before the >> flush operation completed, the new user can not correctly acc

Re: [PATCH 4/7] iommu/amd: make sure TLB to be flushed before IOVA freed

2018-05-31 Thread Robin Murphy
On 31/05/18 08:42, Zhen Lei wrote: Although the mapping has already been removed in the page table, it maybe still exist in TLB. Suppose the freed IOVAs is reused by others before the flush operation completed, the new user can not correctly access to its meomory. This change seems reasonable i

[PATCH 4/7] iommu/amd: make sure TLB to be flushed before IOVA freed

2018-05-31 Thread Zhen Lei
Although the mapping has already been removed in the page table, it maybe still exist in TLB. Suppose the freed IOVAs is reused by others before the flush operation completed, the new user can not correctly access to its meomory. Signed-off-by: Zhen Lei --- drivers/iommu/amd_iommu.c | 2 +- 1 fi