答复: [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

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

2020-09-01 Thread Maoming (maoming, Cloud Infrastructure Service Product Dept.)
> > On 2020/8/28 下午10:24, Peter Xu wrote: > > On Fri, Aug 28, 2020 at 09:23:08AM +0000, Maoming (maoming, Cloud > Infrastructure Service Product Dept.) wrote: > >> In hugetlb_put_pfn(), I delete unpin_user_pages_dirty_lock() and use some > simple code to put hugetl

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

2020-08-28 Thread Maoming (maoming, Cloud Infrastructure Service Product Dept.)
On Wed, Aug 26, 2020 at 01:56:43PM +, Maoming (maoming, Cloud Infrastructure Service Product Dept.) wrote: > > + /* > > +* Unlike THP, the splitting should not happen for hugetlb pages. > > +* Since PG_reserved is not relevant for compound pages, and the pfn of &g

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

2020-08-28 Thread Maoming (maoming, Cloud Infrastructure Service Product Dept.)
Hi, Thanks for taking a look. Some replies below: On Fri, 14 Aug 2020 10:37:29 +0800 Ming Mao wrote: > In the original process of pinning/unpinning 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 lon

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

2020-08-26 Thread Maoming (maoming, Cloud Infrastructure Service Product Dept.)
-邮件原件- 发件人: Peter Xu [mailto:pet...@redhat.com] 发送时间: 2020年8月26日 4:59 收件人: Maoming (maoming, Cloud Infrastructure Service Product Dept.) 抄送: linux-kernel@vger.kernel.org; k...@vger.kernel.org; alex.william...@redhat.com; coh...@redhat.com; Zhoujian (jay) ; Huangweidong (C

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

2020-08-12 Thread Maoming (maoming, Cloud Infrastructure Service Product Dept.)
lex.william...@redhat.com] > Sent: Tuesday, July 21, 2020 6:46 AM > To: Zhoujian (jay) > Cc: linux-kernel@vger.kernel.org; k...@vger.kernel.org; > coh...@redhat.com; Maoming (maoming, Cloud Infrastructure Service > Product Dept.) ; Huangweidong (C) > ; Peter Xu ; Andrea > Arcang