lkml.org 
[lkml]   [2013]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 0/3] Pin page control subsystem
On Wed, 14 Aug 2013, Minchan Kim wrote:

> On Tue, Aug 13, 2013 at 04:21:30PM +0000, Christoph Lameter wrote:
> > On Tue, 13 Aug 2013, Minchan Kim wrote:
> >
> > > VM sometime want to migrate and/or reclaim pages for CMA, memory-hotplug,
> > > THP and so on but at the moment, it could handle only userspace pages
> > > so if above example subsystem have pinned a some page in a range VM want
> > > to migrate, migration is failed so above exmaple couldn't work well.
> >
> > Dont we have the mmu_notifiers that could help in that case? You could get
> > a callback which could prepare the pages for migration?
>
> Now I'm not familiar with mmu_notifier so please could you elaborate it
> a bit for me to dive into that?

Add a notifier callback for unpinning pages to the mmu notifier subsystem
and then your drivers could register with the subsystem to get
notifications when migration needs to occur etc.



\
 
 \ /
  Last update: 2013-08-14 21:21    [W:0.090 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site