]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/postcopy: Use uffd helpers
authorDr. David Alan Gilbert <dave@treblig.org>
Thu, 19 Sep 2024 13:46:25 +0000 (14:46 +0100)
committerPeter Xu <peterx@redhat.com>
Tue, 8 Oct 2024 19:28:55 +0000 (15:28 -0400)
commit3ba55a33e82c9902c211d6325bc550afcca7ddf9
tree715d3cfac242589540fcf3a980682647ebec0b83
parent6f81bd1a3ec3b8c06ec614f09eac688c6053f412
migration/postcopy: Use uffd helpers

Use the uffd_copy_page, uffd_zero_page and uffd_wakeup helpers
rather than calling ioctl ourselves.

They return -errno on error, and print an error_report themselves.
I think this actually makes postcopy_place_page actually more
consistent in it's callers.

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20240919134626.166183-7-dave@treblig.org
[peterx: fix i386 build]
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/postcopy-ram.c