Re: [PATCH v2 5/7] util/userfaultfd: Return -errno on error

2024-09-19 Thread Peter Xu
On Thu, Sep 19, 2024 at 02:46:24PM +0100, d...@treblig.org wrote: > From: "Dr. David Alan Gilbert" > > Convert (the currently unused) uffd_wakeup, uffd_copy_page and > uffd_zero_page to return -errno on error rather than -1. > > That will make it easier to reuse in postcopy. > > Signed-off-by:

[PATCH v2 5/7] util/userfaultfd: Return -errno on error

2024-09-19 Thread dave
From: "Dr. David Alan Gilbert" Convert (the currently unused) uffd_wakeup, uffd_copy_page and uffd_zero_page to return -errno on error rather than -1. That will make it easier to reuse in postcopy. Signed-off-by: Dr. David Alan Gilbert --- util/userfaultfd.c | 21 - 1 file