Re: [PATCH 2/3] util/userfaultfd: Add uffd_open()

2023-01-26 Thread Peter Xu
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 > > --- > > include/qemu/userfaultfd.h | 1 + > > migration/postcopy-ram.c | 11 +-- > > tests

Re: [PATCH 2/3] util/userfaultfd: Add uffd_open()

2023-01-25 Thread Philippe Mathieu-Daudé
On 25/1/23 23:40, Peter Xu wrote: Add a helper to create the uffd handle. Signed-off-by: Peter Xu --- include/qemu/userfaultfd.h | 1 + migration/postcopy-ram.c | 11 +-- tests/qtest/migration-test.c | 3 ++- util/userfaultfd.c | 13 +++-- 4 files changed

[PATCH 2/3] util/userfaultfd: Add uffd_open()

2023-01-25 Thread Peter Xu
Add a helper to create the uffd handle. Signed-off-by: Peter Xu --- 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