Subject: Re: port-mips/15965: NEW_PIPE broken on port-mips
To: Chuck Silvers <chuq@chuq.com>
From: Takao Shinohara <shin@sm.sony.co.jp>
List: netbsd-bugs
Date: 03/24/2002 14:07:39
Chuck Silvers <chuq@chuq.com> writes:
> the problem with using pmap_enter() instead of pmap_kenter_pa()
> for pages that are loaned to the kernel is that we need to make
> sure that the loan mappings for these pages are not removed by
> pmap_page_protect(VM_PROT_NONE).  if the page loaned to the kernel
> is owned by a vnode object and the file is truncated such that the
> page is now past the end of the file, we need to be able to leave
> the loan mappings alone while removing all other mappings.
> the way to do this is to use pmap_kenter_pa() for loan mappings
> and pmap_enter() for non-loan mappings, then pmap_page_protect()
> removes exactly the mappings we want.

Should pmap_kenter_pa() call pmap_enter_pv()?

--- Takao Shinohara