diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2019-10-08 21:43:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-10 11:34:20 +0100 |
commit | ad9b4e9bd03a37be0c22011b96d9d7aac2711996 (patch) | |
tree | 9b26b14f60c5b581682648d89d7df5d02a698e67 /tools/testing | |
parent | 4fc9dedf726756ddcc74e7648c6c54ada6b5de75 (diff) | |
download | linux-stable-ad9b4e9bd03a37be0c22011b96d9d7aac2711996.tar.gz linux-stable-ad9b4e9bd03a37be0c22011b96d9d7aac2711996.tar.bz2 linux-stable-ad9b4e9bd03a37be0c22011b96d9d7aac2711996.zip |
selftests: kvm: vmx_set_nested_state_test: don't check for VMX support twice
[ Upstream commit 700c17d9cec8712f4091692488fb63e2680f7a5d ]
vmx_set_nested_state_test() checks if VMX is supported twice: in the very
beginning (and skips the whole test if it's not) and before doing
test_vmx_nested_state(). One should be enough.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c b/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c index 853e370e8a39..a6d85614ae4d 100644 --- a/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c +++ b/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c @@ -271,12 +271,7 @@ int main(int argc, char *argv[]) state.flags = KVM_STATE_NESTED_RUN_PENDING; test_nested_state_expect_einval(vm, &state); - /* - * TODO: When SVM support is added for KVM_SET_NESTED_STATE - * add tests here to support it like VMX. - */ - if (entry->ecx & CPUID_VMX) - test_vmx_nested_state(vm); + test_vmx_nested_state(vm); kvm_vm_free(vm); return 0; |