Browse Source

xlat: provide fallback definitions for UFFD_FEATURE_* constants

* xlat/uffd_api_features.in: Add fallback definitions.

References: https://bugzilla.redhat.com/show_bug.cgi?id=1758201
Eugene Syromyatnikov 1 month ago
parent
commit
696a5c4d25
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      xlat/uffd_api_features.in

+ 9
- 9
xlat/uffd_api_features.in View File

@@ -1,10 +1,10 @@
1 1
 #val_type uint64_t
2
-UFFD_FEATURE_PAGEFAULT_FLAG_WP
3
-UFFD_FEATURE_EVENT_FORK
4
-UFFD_FEATURE_EVENT_REMAP
5
-UFFD_FEATURE_EVENT_REMOVE
6
-UFFD_FEATURE_MISSING_HUGETLBFS
7
-UFFD_FEATURE_MISSING_SHMEM
8
-UFFD_FEATURE_EVENT_UNMAP
9
-UFFD_FEATURE_SIGBUS
10
-UFFD_FEATURE_THREAD_ID
2
+UFFD_FEATURE_PAGEFAULT_FLAG_WP	(1<<0)
3
+UFFD_FEATURE_EVENT_FORK		(1<<1)
4
+UFFD_FEATURE_EVENT_REMAP	(1<<2)
5
+UFFD_FEATURE_EVENT_REMOVE	(1<<3)
6
+UFFD_FEATURE_MISSING_HUGETLBFS	(1<<4)
7
+UFFD_FEATURE_MISSING_SHMEM	(1<<5)
8
+UFFD_FEATURE_EVENT_UNMAP	(1<<6)
9
+UFFD_FEATURE_SIGBUS		(1<<7)
10
+UFFD_FEATURE_THREAD_ID		(1<<8)

Loading…
Cancel
Save