aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/riscv/processor.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2024-04-30 16:21:33 +0000
committerSean Christopherson <[email protected]>2024-05-02 23:12:28 +0000
commit8a53e13021330a25775a31ced44fbec2225a9443 (patch)
tree570a1e71b188854a3204ed126d16cab651f0f091 /tools/testing/selftests/kvm/lib/riscv/processor.c
parentKVM: selftests: Allow skipping the KVM_RUN sanity check in rseq_test (diff)
downloadkernel-8a53e13021330a25775a31ced44fbec2225a9443.tar.gz
kernel-8a53e13021330a25775a31ced44fbec2225a9443.zip
KVM: selftests: Require KVM_CAP_USER_MEMORY2 for tests that create memslots
Explicitly require KVM_CAP_USER_MEMORY2 for selftests that create memslots, i.e. skip selftests that need memslots instead of letting them fail on KVM_SET_USER_MEMORY_REGION2. While it's ok to take a dependency on new kernel features, selftests should skip gracefully instead of failing hard when run on older kernels. Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/all/[email protected] Suggested-by: Shuah Khan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/riscv/processor.c')
0 files changed, 0 insertions, 0 deletions