Searched refs:uffd_fd (Results 1 – 3 of 3) sorted by relevance
/openbmc/qemu/util/ |
H A D | userfaultfd.c | 71 int uffd_fd; in uffd_query_features() local 76 if (uffd_fd < 0) { in uffd_query_features() 92 close(uffd_fd); in uffd_query_features() 106 int uffd_fd; in uffd_create_fd() local 112 uffd_fd = uffd_open(flags); in uffd_create_fd() 113 if (uffd_fd < 0) { in uffd_create_fd() 129 return uffd_fd; in uffd_create_fd() 132 close(uffd_fd); in uffd_create_fd() 141 void uffd_close_fd(int uffd_fd) in uffd_close_fd() argument 143 assert(uffd_fd >= 0); in uffd_close_fd() [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | userfaultfd.h | 31 void uffd_close_fd(int uffd_fd); 32 int uffd_register_memory(int uffd_fd, void *addr, uint64_t length, 34 int uffd_unregister_memory(int uffd_fd, void *addr, uint64_t length); 35 int uffd_change_protection(int uffd_fd, void *addr, uint64_t length, 37 int uffd_copy_page(int uffd_fd, void *dst_addr, void *src_addr, 39 int uffd_zero_page(int uffd_fd, void *addr, uint64_t length, bool dont_wake); 40 int uffd_wakeup(int uffd_fd, void *addr, uint64_t length); 41 int uffd_read_events(int uffd_fd, struct uffd_msg *msgs, int count); 42 bool uffd_poll_events(int uffd_fd, int tmo);
|
/openbmc/qemu/migration/ |
H A D | ram.c | 1486 int uffd_fd; in ram_write_tracking_compatible() local 1492 if (uffd_fd < 0) { in ram_write_tracking_compatible() 1517 uffd_close_fd(uffd_fd); in ram_write_tracking_compatible() 1621 int uffd_fd = (uintptr_t)opaque; in uffd_protect_section() local 1644 return uffd_change_protection(uffd_fd, rb->host, in ram_block_uffd_protect() 1655 int uffd_fd; in ram_write_tracking_start() local 1661 if (uffd_fd < 0) { in ram_write_tracking_start() 1662 return uffd_fd; in ram_write_tracking_start() 1664 rs->uffdio_fd = uffd_fd; in ram_write_tracking_start() 1683 if (ram_block_uffd_protect(block, uffd_fd)) { in ram_write_tracking_start() [all …]
|