/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_mod_race.c | 94 struct uffd_msg uffd_msg; in test_bpf_mod_race_config() local 141 if (!ASSERT_EQ(read(uffd, &uffd_msg, sizeof(uffd_msg)), sizeof(uffd_msg), in test_bpf_mod_race_config() 144 if (!ASSERT_EQ(uffd_msg.event, UFFD_EVENT_PAGEFAULT, "read uffd event is pagefault")) in test_bpf_mod_race_config()
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | uffd-common.h | 84 void (*handle_fault)(struct uffd_msg *msg, struct uffd_args *args); 112 int uffd_read_msg(int ufd, struct uffd_msg *msg); 114 void uffd_handle_page_fault(struct uffd_msg *msg, struct uffd_args *args);
|
H A D | uffd-common.c | 408 int uffd_read_msg(int ufd, struct uffd_msg *msg) in uffd_read_msg() 425 void uffd_handle_page_fault(struct uffd_msg *msg, struct uffd_args *args) in uffd_handle_page_fault() 498 struct uffd_msg msg; in uffd_poll_thread()
|
H A D | uffd-stress.c | 133 struct uffd_msg msg; in uffd_read_thread()
|
H A D | uffd-unit-tests.c | 238 struct uffd_msg msg = { 0 }; in fork_event_consumer() 996 struct uffd_msg *msg, struct uffd_args *args) in uffd_poison_handle_fault()
|
/openbmc/qemu/util/ |
H A D | userfaultfd.c | 341 int uffd_read_events(int uffd_fd, struct uffd_msg *msgs, int count) in uffd_read_events() 345 res = read(uffd_fd, msgs, count * sizeof(struct uffd_msg)); in uffd_read_events() 356 return (int) (res / sizeof(struct uffd_msg)); in uffd_read_events()
|
/openbmc/linux/tools/testing/selftests/kvm/include/ |
H A D | userfaultfd_util.h | 18 typedef int (*uffd_handler_t)(int uffd_mode, int uffd, struct uffd_msg *msg);
|
/openbmc/qemu/include/qemu/ |
H A D | userfaultfd.h | 41 int uffd_read_events(int uffd_fd, struct uffd_msg *msgs, int count);
|
/openbmc/linux/fs/ |
H A D | userfaultfd.c | 107 struct uffd_msg msg; 230 static inline void msg_init(struct uffd_msg *msg) in msg_init() 232 BUILD_BUG_ON(sizeof(struct uffd_msg) != 32); in msg_init() 237 memset(msg, 0, sizeof(struct uffd_msg)); in msg_init() 240 static inline struct uffd_msg userfault_msg(unsigned long address, in userfault_msg() 246 struct uffd_msg msg; in userfault_msg() 1036 struct uffd_msg *msg) in resolve_userfault_fork() 1051 struct uffd_msg *msg, struct inode *inode) in userfaultfd_ctx_read() 1220 struct uffd_msg msg; in userfaultfd_read()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | userfaultfd_util.c | 40 struct uffd_msg msg; in uffd_handler_thread_fn()
|
/openbmc/linux/include/uapi/linux/ |
H A D | userfaultfd.h | 102 struct uffd_msg { struct
|
/openbmc/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | page_fault_test.c | 310 static int uffd_generic_handler(int uffd_mode, int uffd, struct uffd_msg *msg, in uffd_generic_handler() 343 static int uffd_pt_handler(int mode, int uffd, struct uffd_msg *msg) in uffd_pt_handler() 348 static int uffd_data_handler(int mode, int uffd, struct uffd_msg *msg) in uffd_data_handler() 400 static int uffd_no_handler(int mode, int uffd, struct uffd_msg *msg) in uffd_no_handler()
|
/openbmc/linux/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-pagefault.c | 85 struct uffd_msg msg; /* Data read from userfaultfd */ in fault_handler_thread()
|
/openbmc/qemu/linux-headers/linux/ |
H A D | userfaultfd.h | 108 struct uffd_msg { struct
|
/openbmc/linux/Documentation/admin-guide/mm/ |
H A D | userfaultfd.rst | 175 ``pagefault.flags`` within the ``uffd_msg``, checking for the 183 event out of a struct uffd_msg that you read in the thread from the 340 ``userfaultfd`` context in the ``uffd_msg.fork``. 346 ``UFFD_EVENT_REMAP``. The ``uffd_msg.remap`` will contain the old and 352 be generated upon these calls to madvise(). The ``uffd_msg.remove`` 357 get ``UFFD_EVENT_UNMAP`` with ``uffd_msg.remove`` containing start and
|
/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | demand_paging_test.c | 61 struct uffd_msg *msg) in handle_uffd_page_request()
|
/openbmc/linux/tools/testing/selftests/x86/ |
H A D | test_shadow_stack.c | 458 struct uffd_msg msg; in uffd_thread()
|
/openbmc/qemu/migration/ |
H A D | ram.c | 1414 struct uffd_msg uffd_msg; in poll_fault_page() local 1423 res = uffd_read_events(rs->uffdio_fd, &uffd_msg, 1); in poll_fault_page() 1428 page_address = (void *)(uintptr_t) uffd_msg.arg.pagefault.address; in poll_fault_page()
|
H A D | postcopy-ram.c | 967 struct uffd_msg msg; in postcopy_ram_fault_thread()
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-user.c | 1921 struct uffd_msg *msg = ufd; in vhost_user_postcopy_fault_handler()
|