aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib/guest_modes.c
AgeCommit message (Collapse)AuthorFilesLines
2021-01-07KVM: selftests: Factor out guest mode codeAndrew Jones1-0/+70
demand_paging_test, dirty_log_test, and dirty_log_perf_test have redundant guest mode code. Factor it out. Also, while adding a new include, remove the ones we don't need. Reviewed-by: Ben Gardon <[email protected]> Reviewed-by: Peter Xu <[email protected]> Signed-off-by: Andrew Jones <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>