Re: 答复: [PATCH V3] vfio dma_map/unmap: optimized for hugetlbfs pages

2020-09-01 Thread Hugh Dickins
On Tue, 1 Sep 2020, Maoming (maoming, Cloud Infrastructure Service Product Dept.) wrote: > > > > > In the original process of dma_map/unmap pages for VFIO-devices, to > > > make sure the pages are contiguous, we have to check them one by one. > > > As a result, dma_map/unmap could spend a long ti

答复: [PATCH V3] vfio dma_map/unmap: optimized for hugetlbfs pages

2020-09-01 Thread Maoming (maoming, Cloud Infrastructure Service Product Dept.)
> > > In the original process of dma_map/unmap pages for VFIO-devices, to > > make sure the pages are contiguous, we have to check them one by one. > > As a result, dma_map/unmap could spend a long time. > > Using the hugetlb pages, we can avoid this problem. > > All pages in hugetlb pages are co

Re: [PATCH V3] vfio dma_map/unmap: optimized for hugetlbfs pages

2020-08-30 Thread Hugh Dickins
On Fri, 28 Aug 2020, Ming Mao wrote: > In the original process of dma_map/unmap pages for VFIO-devices, > to make sure the pages are contiguous, we have to check them one by one. > As a result, dma_map/unmap could spend a long time. > Using the hugetlb pages, we can avoid this problem. > All pages

[PATCH V3] vfio dma_map/unmap: optimized for hugetlbfs pages

2020-08-28 Thread Ming Mao
In the original process of dma_map/unmap pages for VFIO-devices, to make sure the pages are contiguous, we have to check them one by one. As a result, dma_map/unmap could spend a long time. Using the hugetlb pages, we can avoid this problem. All pages in hugetlb pages are contiguous.And the hugetlb