qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 2/3] util/userfaultfd: Add uffd_open()
Date: Thu, 26 Jan 2023 00:04:35 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1

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:
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]