diff options
author | Ricardo Koller <[email protected]> | 2022-10-17 19:58:21 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-11-10 19:10:27 +0000 |
commit | a93871d0ea9fd59fb5eb783619334183d7f07f51 (patch) | |
tree | 1d0a4d9bec147f734f25a1c090c5b2bd57925b42 /lib/mpi/mpi-sub-ui.c | |
parent | 30a0b95b1335e12efef89dd78518ed3e4a71a763 (diff) |
KVM: selftests: Add a userfaultfd library
Move the generic userfaultfd code out of demand_paging_test.c into a
common library, userfaultfd_util. This library consists of a setup and a
stop function. The setup function starts a thread for handling page
faults using the handler callback function. This setup returns a
uffd_desc object which is then used in the stop function (to wait and
destroy the threads).
Reviewed-by: Oliver Upton <[email protected]>
Reviewed-by: Ben Gardon <[email protected]>
Signed-off-by: Ricardo Koller <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions