Searched refs:uffd_mode (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/tools/testing/selftests/kvm/ |
D | demand_paging_test.c | 57 static int handle_uffd_page_request(int uffd_mode, int uffd, in handle_uffd_page_request() argument 68 if (uffd_mode == UFFDIO_REGISTER_MODE_MISSING) { in handle_uffd_page_request() 94 } else if (uffd_mode == UFFDIO_REGISTER_MODE_MINOR) { in handle_uffd_page_request() 119 TEST_FAIL("Invalid uffd mode %d", uffd_mode); in handle_uffd_page_request() 133 int uffd_mode; member 174 if (p->uffd_mode == UFFDIO_REGISTER_MODE_MINOR) { in run_test() 183 if (p->uffd_mode) { in run_test() 202 p->uffd_mode, p->uffd_delay, vcpu_hva, in run_test() 219 if (p->uffd_mode) { in run_test() 238 if (p->uffd_mode) in run_test() [all …]
|
/linux-6.12.1/tools/testing/selftests/kvm/include/ |
D | userfaultfd_util.h | 15 typedef int (*uffd_handler_t)(int uffd_mode, int uffd, struct uffd_msg *msg); 18 int uffd_mode; member 35 struct uffd_desc *uffd_setup_demand_paging(int uffd_mode, useconds_t delay,
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/ |
D | userfaultfd_util.c | 88 r = reader_args->handler(reader_args->uffd_mode, uffd, &msg); in uffd_handler_thread_fn() 102 struct uffd_desc *uffd_setup_demand_paging(int uffd_mode, useconds_t delay, in uffd_setup_demand_paging() argument 108 bool is_minor = (uffd_mode == UFFDIO_REGISTER_MODE_MINOR); in uffd_setup_demand_paging() 148 uffdio_register.mode = uffd_mode; in uffd_setup_demand_paging() 164 uffd_desc->reader_args[i].uffd_mode = uffd_mode; in uffd_setup_demand_paging()
|
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/ |
D | page_fault_test.c | 309 static int uffd_generic_handler(int uffd_mode, int uffd, struct uffd_msg *msg, in uffd_generic_handler() argument 317 TEST_ASSERT(uffd_mode == UFFDIO_REGISTER_MODE_MISSING, in uffd_generic_handler() 367 int uffd_mode = UFFDIO_REGISTER_MODE_MISSING; in setup_uffd() local 374 *pt_uffd = uffd_setup_demand_paging(uffd_mode, 0, in setup_uffd() 381 *data_uffd = uffd_setup_demand_paging(uffd_mode, 0, in setup_uffd()
|