Re: tracking P-V for unmanaged device pages

2015-04-08 Thread Taylor R Campbell
Date: Thu, 9 Apr 2015 09:45:15 +0900 From: Masao Uebayashi uebay...@gmail.com On Wed, Apr 8, 2015 at 11:34 PM, Taylor R Campbell campbell+netbsd-tech-k...@mumble.net wrote: Date: Wed, 8 Apr 2015 12:29:13 +0900 From: Masao Uebayashi uebay...@gmail.com

Re: tracking P-V for unmanaged device pages

2015-04-08 Thread Masao Uebayashi
On Thu, Apr 9, 2015 at 11:46 AM, Taylor R Campbell campbell+netbsd-tech-k...@mumble.net wrote: In my pmap_pv API, there's no need to change pmap_enter. All you need to do is to call pmap_pv_track on driver attach to mark the pages as device pages. Then pmap can do the bookkeeping

Re: tracking P-V for unmanaged device pages

2015-04-08 Thread Taylor R Campbell
Date: Wed, 8 Apr 2015 12:29:13 +0900 From: Masao Uebayashi uebay...@gmail.com Considering these, PV should be kept in struct vm_physseg, instead of struct vm_page, ideally. The only difficulty with that is that you still need a fast way to go from a struct vm_page to the PV tracking