[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/3] util/userfaultfd: Add uffd_open()
From: |
Peter Xu |
Subject: |
Re: [PATCH 2/3] util/userfaultfd: Add uffd_open() |
Date: |
Thu, 26 Jan 2023 10:58:02 -0500 |
On Thu, Jan 26, 2023 at 12:04:35AM +0100, Philippe Mathieu-Daudé wrote:
> On 25/1/23 23:40, Peter Xu wrote:
> > Add a helper to create the uffd handle.
> >
> > Signed-off-by: Peter Xu <peterx@redhat.com>
> > ---
> > include/qemu/userfaultfd.h | 1 +
> > migration/postcopy-ram.c | 11 +++++------
> > tests/qtest/migration-test.c | 3 ++-
> > util/userfaultfd.c | 13 +++++++++++--
> > 4 files changed, 19 insertions(+), 9 deletions(-)
> >
> > diff --git a/include/qemu/userfaultfd.h b/include/qemu/userfaultfd.h
> > index 6b74f92792..a19a05d5f7 100644
> > --- a/include/qemu/userfaultfd.h
> > +++ b/include/qemu/userfaultfd.h
> > @@ -17,6 +17,7 @@
> > #include "exec/hwaddr.h"
> > #include <linux/userfaultfd.h>
> > +int uffd_open(int flags);
>
> Preferably documenting what this function returns:
Sure thing.
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Thanks,
--
Peter Xu