Commit 11eada47 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Paolo Bonzini

selftests: kvm: vmx_dirty_log_test: skip the test when VMX is not supported

vmx_dirty_log_test fails on AMD and this is no surprise as it is VMX
specific. Bail early when nested VMX is unsupported.
Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 9143613e
...@@ -78,6 +78,8 @@ int main(int argc, char *argv[]) ...@@ -78,6 +78,8 @@ int main(int argc, char *argv[])
struct ucall uc; struct ucall uc;
bool done = false; bool done = false;
nested_vmx_check_supported();
/* Create VM */ /* Create VM */
vm = vm_create_default(VCPU_ID, 0, l1_guest_code); vm = vm_create_default(VCPU_ID, 0, l1_guest_code);
vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment