diff options
author | David Matlack <dmatlack@google.com> | 2022-11-16 12:42:28 -0800 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2022-11-16 16:59:07 -0800 |
commit | ecb89a51724b3cd89c13ba7364e82f9879b68dcf (patch) | |
tree | 5fff076fdca43ebb3ff8c7497cf77e4cf25a815b /tools/testing/selftests/kvm/dirty_log_perf_test.c | |
parent | b941ba2380ccf51e048dc58ff0e6bdf11828f6d9 (diff) | |
download | linux-stable-ecb89a51724b3cd89c13ba7364e82f9879b68dcf.tar.gz linux-stable-ecb89a51724b3cd89c13ba7364e82f9879b68dcf.tar.bz2 linux-stable-ecb89a51724b3cd89c13ba7364e82f9879b68dcf.zip |
KVM: selftests: Check for KVM nEPT support using "feature" MSRs
When checking for nEPT support in KVM, use kvm_get_feature_msr() instead
of vcpu_get_msr() to retrieve KVM's default TRUE_PROCBASED_CTLS and
PROCBASED_CTLS2 MSR values, i.e. don't require a VM+vCPU to query nEPT
support.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20220927165209.930904-1-dmatlack@google.com
[sean: rebase on merged code, write changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/dirty_log_perf_test.c')
0 files changed, 0 insertions, 0 deletions