Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/kvm/lib/
Duserfaultfd_util.c30 struct uffd_desc *uffd_desc = (struct uffd_desc *)arg; in uffd_handler_thread_fn() local
31 int uffd = uffd_desc->uffd; in uffd_handler_thread_fn()
32 int pipefd = uffd_desc->pipefds[0]; in uffd_handler_thread_fn()
33 useconds_t delay = uffd_desc->delay; in uffd_handler_thread_fn()
97 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()
115 struct uffd_desc *uffd_desc; in uffd_setup_demand_paging() local
127 uffd_desc = malloc(sizeof(struct uffd_desc)); in uffd_setup_demand_paging()
128 TEST_ASSERT(uffd_desc, "malloc failed"); in uffd_setup_demand_paging()
151 ret = pipe2(uffd_desc->pipefds, O_CLOEXEC | O_NONBLOCK); in uffd_setup_demand_paging()
[all …]
/Linux-v6.6/tools/testing/selftests/kvm/include/
Duserfaultfd_util.h20 struct uffd_desc { struct
29 struct uffd_desc *uffd_setup_demand_paging(int uffd_mode, useconds_t delay, argument
33 void uffd_stop_demand_paging(struct uffd_desc *uffd);
/Linux-v6.6/tools/testing/selftests/kvm/
Ddemand_paging_test.c133 struct uffd_desc **uffd_descs = NULL; in run_test()
158 uffd_descs = malloc(nr_vcpus * sizeof(struct uffd_desc *)); in run_test()
/Linux-v6.6/tools/testing/selftests/kvm/aarch64/
Dpage_fault_test.c365 struct uffd_desc **pt_uffd, struct uffd_desc **data_uffd) in setup_uffd()
388 static void free_uffd(struct test_desc *test, struct uffd_desc *pt_uffd, in free_uffd()
389 struct uffd_desc *data_uffd) in free_uffd()
704 struct uffd_desc *pt_uffd, *data_uffd; in run_test()