KVM: selftests: avoid test failures with 'nested=0'
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | KVM: selftests: do not substitute SVM/VMX check with KVM_CAP_NESTED_STATE checktools/ tools/ tools/ +3 more | +30 | 0 replies | |
| 2/2 | KVM: selftests: Don't probe KVM_CAP_HYPERV_ENLIGHTENED_VMCS when nested VMX is unsupportedtools/ tools/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] KVM: selftests: avoid test failures with 'nested=0'
Commit 33b22172452f ("KVM: x86: move nested-related kvm_x86_ops to a separate struct") made nested hooks (e.g. ->get_state(), ->enable_evmcs()) always available, even when kvm module is loaded with 'nested=0'. Assuming the change was intentional, update selftests to not fail in this situation.
Vitaly Kuznetsov (2):
KVM: selftests: do not substitute SVM/VMX check with
KVM_CAP_NESTED_STATE check
KVM: selftests: Don't probe KVM_CAP_HYPERV_ENLIGHTENED_VMCS when
nested VMX is unsupported
.../testing/selftests/kvm/include/x86_64/svm_util.h | 1 + tools/testing/selftests/kvm/include/x86_64/vmx.h | 1 + tools/testing/selftests/kvm/lib/x86_64/svm.c | 10 +++++++--- tools/testing/selftests/kvm/lib/x86_64/vmx.c | 9 +++++++-- tools/testing/selftests/kvm/x86_64/evmcs_test.c | 5 +++-- tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c | 3 ++- tools/testing/selftests/kvm/x86_64/smm_test.c | 13 +++++++------ tools/testing/selftests/kvm/x86_64/state_test.c | 13 +++++++------ 8 files changed, 35 insertions(+), 20 deletions(-)
Signature · 1 line
2.25.4