On Fri, Nov 11, 2022 at 04:30:27AM +0000, Li Zhijian wrote: > Make the code more friendly and readable by using iova_to_vaddr() But the point of this is to be faster because it knows pages are in a linear list As with my previous suggestion, just convert this to an xarray and then it is a trivial and fast xas_for_each_range() returning struct pages. Jason