Without this hack kvm/queue kvm selftests don't compile for x86_64. --- tools/testing/selftests/kvm/demand_paging_test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/kvm/demand_paging_test.c b/tools/testing/selftests/kvm/demand_paging_test.c index df1fc38b4df1..ec8860b70129 100644 --- a/tools/testing/selftests/kvm/demand_paging_test.c +++ b/tools/testing/selftests/kvm/demand_paging_test.c @@ -20,6 +20,10 @@ #include <linux/bitops.h> #include <linux/userfaultfd.h> +#ifndef __NR_userfaultfd +#define __NR_userfaultfd 282 +#endif + #include "test_util.h" #include "kvm_util.h" #include "processor.h" -- 2.21.1