]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Use kvm_cpu_has() for nSVM soft INT injection test
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:40 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:13 +0000 (18:14 -0700)
commit93d6f296b26df59f86a239f85278564d06168c44
tree751af5adaa533cf40270e1a568fb74a3717c015b
parent283848a993ea0063434cc514b9c9b06d8e25d21c
KVM: selftests: Use kvm_cpu_has() for nSVM soft INT injection test

Use kvm_cpu_has() to query for NRIPS support instead of open coding
equivalent functionality using kvm_get_supported_cpuid_entry().

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220614200707.3315957-16-seanjc@google.com
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/x86_64/svm_nested_soft_inject_test.c