util/userfaultfd: Add uffd_open()
commitd5890ea0722831eea76a0efd23a496b3e8815fe8
authorPeter Xu <peterx@redhat.com>
Wed, 1 Feb 2023 21:10:54 +0000 (1 16:10 -0500)
committerJuan Quintela <quintela@redhat.com>
Mon, 6 Feb 2023 18:22:56 +0000 (6 19:22 +0100)
treec9d365c7db03036f2928100155bb8d77ccad6bee
parentd9df92925ef2b7ca8774ef44b0e1f859a91d4cd6
util/userfaultfd: Add uffd_open()

Add a helper to create the uffd handle.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/qemu/userfaultfd.h
migration/postcopy-ram.c
tests/qtest/migration-test.c
util/userfaultfd.c