Home
last modified time | relevance | path

Searched refs:uffd_msg (Results 1 – 20 of 20) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_mod_race.c94 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 Duffd-common.h84 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 Duffd-common.c408 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 Duffd-stress.c133 struct uffd_msg msg; in uffd_read_thread()
H A Duffd-unit-tests.c238 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 Duserfaultfd.c341 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 Duserfaultfd_util.h18 typedef int (*uffd_handler_t)(int uffd_mode, int uffd, struct uffd_msg *msg);
/openbmc/qemu/include/qemu/
H A Duserfaultfd.h41 int uffd_read_events(int uffd_fd, struct uffd_msg *msgs, int count);
/openbmc/linux/fs/
H A Duserfaultfd.c107 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 Duserfaultfd_util.c40 struct uffd_msg msg; in uffd_handler_thread_fn()
/openbmc/linux/include/uapi/linux/
H A Duserfaultfd.h102 struct uffd_msg { struct
/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()
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 Dtm-signal-pagefault.c85 struct uffd_msg msg; /* Data read from userfaultfd */ in fault_handler_thread()
/openbmc/qemu/linux-headers/linux/
H A Duserfaultfd.h108 struct uffd_msg { struct
/openbmc/linux/Documentation/admin-guide/mm/
H A Duserfaultfd.rst175 ``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 Ddemand_paging_test.c61 struct uffd_msg *msg) in handle_uffd_page_request()
/openbmc/linux/tools/testing/selftests/x86/
H A Dtest_shadow_stack.c458 struct uffd_msg msg; in uffd_thread()
/openbmc/qemu/migration/
H A Dram.c1414 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 Dpostcopy-ram.c967 struct uffd_msg msg; in postcopy_ram_fault_thread()
/openbmc/qemu/hw/virtio/
H A Dvhost-user.c1921 struct uffd_msg *msg = ufd; in vhost_user_postcopy_fault_handler()