Home
last modified time | relevance | path

Searched refs:uffd_mode (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/tools/testing/selftests/kvm/
H A Ddemand_paging_test.c71 if (uffd_mode == UFFDIO_REGISTER_MODE_MISSING) { in handle_uffd_page_request()
98 TEST_FAIL("Invalid uffd mode %d", uffd_mode); in handle_uffd_page_request()
112 int uffd_mode; member
149 if (p->uffd_mode == UFFDIO_REGISTER_MODE_MINOR) { in run_test()
157 if (p->uffd_mode) { in run_test()
172 p->uffd_mode, p->uffd_delay, vcpu_hva, in run_test()
188 if (p->uffd_mode) { in run_test()
203 if (p->uffd_mode) in run_test()
249 p.uffd_mode = UFFDIO_REGISTER_MODE_MISSING; in main()
251 p.uffd_mode = UFFDIO_REGISTER_MODE_MINOR; in main()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Duserfaultfd_util.c97 r = uffd_desc->handler(uffd_desc->uffd_mode, uffd, &msg); in uffd_handler_thread_fn()
111 struct uffd_desc *uffd_setup_demand_paging(int uffd_mode, useconds_t delay, in uffd_setup_demand_paging() argument
116 bool is_minor = (uffd_mode == UFFDIO_REGISTER_MODE_MINOR); in uffd_setup_demand_paging()
145 uffdio_register.mode = uffd_mode; in uffd_setup_demand_paging()
154 uffd_desc->uffd_mode = uffd_mode; in uffd_setup_demand_paging()
/openbmc/linux/tools/testing/selftests/kvm/include/
H A Duserfaultfd_util.h18 typedef int (*uffd_handler_t)(int uffd_mode, int uffd, struct uffd_msg *msg);
21 int uffd_mode; member
29 struct uffd_desc *uffd_setup_demand_paging(int uffd_mode, useconds_t delay,
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Dpage_fault_test.c310 static int uffd_generic_handler(int uffd_mode, int uffd, struct uffd_msg *msg, in uffd_generic_handler() argument
318 TEST_ASSERT(uffd_mode == UFFDIO_REGISTER_MODE_MISSING, in uffd_generic_handler()
368 int uffd_mode = UFFDIO_REGISTER_MODE_MISSING; in setup_uffd() local
375 *pt_uffd = uffd_setup_demand_paging(uffd_mode, 0, in setup_uffd()
382 *data_uffd = uffd_setup_demand_paging(uffd_mode, 0, in setup_uffd()