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)
commit3c67f8208451a864478b9bf049782159fc925e11
tree751af5adaa533cf40270e1a568fb74a3717c015b
parent601c067f381532105d01db9257b69eb9cfa8945e
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