Index | Thread | Search

From:
Theo Buehler <tb@openbsd.org>
Subject:
Re: uvmfault_anonget: return values
To:
tech@openbsd.org
Date:
Mon, 25 Nov 2024 20:05:59 +0100

Download raw body.

Thread
On Mon, Nov 25, 2024 at 04:19:54PM +0100, Martin Pieuchot wrote:
> On 25/11/24(Mon) 14:56, Martin Pieuchot wrote:
> > Diff below changes the uvmfault_anonget() return value to avoid a
> > conversion.  The idea is to return errno(2) values that are, then,
> > returned by uvm_fault().  This reduces the diff with NetBSD and is
> > necessary for upcoming changes.
> > 
> > This diff doesn't include any behavior change.  We could later return
> > EIO instead of EACCES when appropriate.  But for the moment I'm
> > concerned about reducing the amount of VM_PAGER_* usages.
> 
> I've been pointed out off-list that the diff was incomplete.  Updated
> diff below with the corresponding uvm/uvm_anon.c change.

ok tb