[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200828142400.GA3197@xz-x1>
Date: Fri, 28 Aug 2020 10:24:00 -0400
From: Peter Xu <peterx@...hat.com>
To: "Maoming (maoming, Cloud Infrastructure Service Product Dept.)"
<maoming.maoming@...wei.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"alex.williamson@...hat.com" <alex.williamson@...hat.com>,
"cohuck@...hat.com" <cohuck@...hat.com>,
"Zhoujian (jay)" <jianjay.zhou@...wei.com>,
"Huangweidong (C)" <weidong.huang@...wei.com>,
"aarcange@...hat.com" <aarcange@...hat.com>,
wangyunjian <wangyunjian@...wei.com>
Subject: Re: 答复: 答复: [PATCH V2] vfio
dma_map/unmap: optimized for hugetlbfs pages
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 hugetlb pages.
> Is this right?
I think we should still use the APIs because of the the same reason. However
again I don't know the performance impact of that to your patch, but I still
think that could be done inside gup itself when needed (e.g., a special path
for hugetlbfs for [un]pinning continuous pages; though if that's the case that
could be something to be discussed on -mm then as a separate patch, imho).
Thanks,
--
Peter Xu
Powered by blists - more mailing lists