Lines Matching refs:postcopy_ufd
234 if (dev->postcopy_ufd >= 0) { in vhost_backend_cleanup()
235 close(dev->postcopy_ufd); in vhost_backend_cleanup()
236 dev->postcopy_ufd = -1; in vhost_backend_cleanup()
1082 if (ioctl(dev->postcopy_ufd, UFFDIO_REGISTER, in vhost_user_postcopy_region_register()
1090 dev->postcopy_ufd, in vhost_user_postcopy_region_register()
2538 dev->postcopy_ufd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in vhost_user_set_postcopy_advise()
2540 if (dev->postcopy_ufd == -1) { in vhost_user_set_postcopy_advise()
2547 if (ioctl(dev->postcopy_ufd, UFFDIO_API, &api_struct)) { in vhost_user_set_postcopy_advise()
2550 close(dev->postcopy_ufd); in vhost_user_set_postcopy_advise()
2551 dev->postcopy_ufd = -1; in vhost_user_set_postcopy_advise()
2554 ctx->fds[0] = dev->postcopy_ufd; in vhost_user_set_postcopy_advise()
2559 dev->postcopy_ufd = -1; in vhost_user_set_postcopy_advise()
2591 if (dev->postcopy_ufd >= 0) { in vhost_user_postcopy_end()
2592 close(dev->postcopy_ufd); in vhost_user_postcopy_end()
2593 dev->postcopy_ufd = -1; in vhost_user_postcopy_end()