Skip to content

KVM: selftests: Re-enable hyperv_evmcs/hyperv_svm_test on bare metal

Vitaly Kuznetsov kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: selftests: Move Hyper-V specific functions out of processor.ctools/testing/selftests/kvm/include/x86_64/hyperv.h tools/testing/selftests/kvm/include/x86_64/processor.h tools/testing/selftests/kvm/lib/x86_64/hyperv.c +2 more+68 -640 replies
2/2KVM: selftests: Re-enable hyperv_evmcs/hyperv_svm_test on bare metaltools/testing/selftests/kvm/include/x86_64/hyperv.h tools/testing/selftests/kvm/lib/x86_64/hyperv.c tools/testing/selftests/kvm/x86_64/hyperv_evmcs.c +1 more+24 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: selftests: Re-enable hyperv_evmcs/hyperv_svm_test on bare metal

Commit 6dac1195181c ("KVM: selftests: Make Hyper-V tests explicitly require KVM Hyper-V support") wrongfully added KVM_CAP_HYPERV_DIRECT_TLBFLUSH requirement to hyperv_evmcs/hyperv_svm_test tests. The capability is only set when KVM runs on top of Hyper-V. The result is that both tests just skip when launched on bare metal. Add the required infrastructure and check for the correct CPUID bit in KVM_GET_SUPPORTED_HV_CPUID instead.

Vitaly Kuznetsov (2):
KVM: selftests: Move Hyper-V specific functions out of processor.c
KVM: selftests: Re-enable hyperv_evmcs/hyperv_svm_test on bare metal

 .../selftests/kvm/include/x86_64/hyperv.h     | 18 +++++
 .../selftests/kvm/include/x86_64/processor.h  |  7 +-
 .../testing/selftests/kvm/lib/x86_64/hyperv.c | 67 +++++++++++++++++++
 .../selftests/kvm/lib/x86_64/processor.c      | 61 -----------------
 .../selftests/kvm/x86_64/hyperv_evmcs.c       |  2 +-
 .../selftests/kvm/x86_64/hyperv_svm_test.c    |  2 +-
 .../selftests/kvm/x86_64/xen_vmcall_test.c    |  1 +
 7 files changed, 92 insertions(+), 66 deletions(-)
Signature · 1 line
2.46.0