[PATCH 0/6] KVM: selftests: Introduce selftests for enlightened MSR-Bitmap feature

From: Vitaly Kuznetsov
Date: Thu Feb 03 2022 - 05:46:28 EST


KVM gained support for enlightened MSR-Bitmap Hyper-V feature (Hyper-V
on KVM) for both nVMX and nSVM, test it in selftests.

Vitaly Kuznetsov (6):
KVM: selftests: Adapt hyperv_cpuid test to the newly introduced
Enlightened MSR-Bitmap
KVM: selftests: nVMX: Properly deal with 'hv_clean_fields'
KVM: selftests: nVMX: Add enlightened MSR-Bitmap selftest
KVM: selftests: nSVM: Set up MSR-Bitmap for SVM guests
KVM: selftests: nSVM: Update 'struct vmcb_control_area' definition
KVM: selftests: nSVM: Add enlightened MSR-Bitmap selftest

tools/testing/selftests/kvm/Makefile | 1 +
.../selftests/kvm/include/x86_64/evmcs.h | 150 ++++++++++++++-
.../selftests/kvm/include/x86_64/svm.h | 9 +-
.../selftests/kvm/include/x86_64/svm_util.h | 6 +
tools/testing/selftests/kvm/lib/x86_64/svm.c | 6 +
.../testing/selftests/kvm/x86_64/evmcs_test.c | 64 ++++++-
.../selftests/kvm/x86_64/hyperv_cpuid.c | 29 +--
.../selftests/kvm/x86_64/hyperv_svm_test.c | 175 ++++++++++++++++++
8 files changed, 424 insertions(+), 16 deletions(-)
create mode 100644 tools/testing/selftests/kvm/x86_64/hyperv_svm_test.c

--
2.34.1