mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
Update criu/include/linux/userfaultfd.h
This is the version from v4.11-rc5. Apparently, that would be the userfault ABI for the next few month. Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
27662f2547
commit
583a399732
@ -1049,7 +1049,6 @@ static int check_compat_cr(void)
|
||||
static int check_uffd(void)
|
||||
{
|
||||
unsigned long features = UFFD_FEATURE_EVENT_FORK |
|
||||
UFFD_FEATURE_EVENT_EXIT |
|
||||
UFFD_FEATURE_EVENT_REMAP |
|
||||
UFFD_FEATURE_EVENT_UNMAP |
|
||||
UFFD_FEATURE_EVENT_REMOVE;
|
||||
|
@ -18,8 +18,7 @@
|
||||
* means the userland is reading).
|
||||
*/
|
||||
#define UFFD_API ((__u64)0xAA)
|
||||
#define UFFD_API_FEATURES (UFFD_FEATURE_EVENT_EXIT | \
|
||||
UFFD_FEATURE_EVENT_FORK | \
|
||||
#define UFFD_API_FEATURES (UFFD_FEATURE_EVENT_FORK | \
|
||||
UFFD_FEATURE_EVENT_REMAP | \
|
||||
UFFD_FEATURE_EVENT_REMOVE | \
|
||||
UFFD_FEATURE_EVENT_UNMAP | \
|
||||
@ -113,7 +112,6 @@ struct uffd_msg {
|
||||
#define UFFD_EVENT_REMAP 0x14
|
||||
#define UFFD_EVENT_REMOVE 0x15
|
||||
#define UFFD_EVENT_UNMAP 0x16
|
||||
#define UFFD_EVENT_EXIT 0x17
|
||||
|
||||
/* flags for UFFD_EVENT_PAGEFAULT */
|
||||
#define UFFD_PAGEFAULT_FLAG_WRITE (1<<0) /* If this was a write fault */
|
||||
@ -163,7 +161,6 @@ struct uffdio_api {
|
||||
#define UFFD_FEATURE_MISSING_HUGETLBFS (1<<4)
|
||||
#define UFFD_FEATURE_MISSING_SHMEM (1<<5)
|
||||
#define UFFD_FEATURE_EVENT_UNMAP (1<<6)
|
||||
#define UFFD_FEATURE_EVENT_EXIT (1<<7)
|
||||
__u64 features;
|
||||
|
||||
__u64 ioctls;
|
||||
|
Loading…
x
Reference in New Issue
Block a user