Re: [PATCH v1 2/2] iommu/vt-d: avoid duplicated removing in __domain_mapping

2021-09-30 Thread Lu Baolu
Hi Longpeng, On 2021/9/15 23:21, Longpeng(Mike) wrote: __domain_mapping() always removes the pages in the range from 'iov_pfn' to 'end_pfn', but the 'end_pfn' is always the last pfn of the range that the caller wants to map. This would introduce too many duplicated removing and leads the map op

[PATCH v1 2/2] iommu/vt-d: avoid duplicated removing in __domain_mapping

2021-09-15 Thread Longpeng(Mike)
__domain_mapping() always removes the pages in the range from 'iov_pfn' to 'end_pfn', but the 'end_pfn' is always the last pfn of the range that the caller wants to map. This would introduce too many duplicated removing and leads the map operation take too long, for example: Map iova=0x10,n