Skip to content

Commit

Permalink
selftests: kvm: vmx_dirty_log_test: skip the test when VMX is not sup…
Browse files Browse the repository at this point in the history
…ported

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: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Vitaly Kuznetsov authored and Paolo Bonzini committed Oct 22, 2019
1 parent 9143613 commit 11eada4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c
Original file line number Diff line number Diff line change
@@ -78,6 +78,8 @@ int main(int argc, char *argv[])
struct ucall uc;
bool done = false;

nested_vmx_check_supported();

/* Create VM */
vm = vm_create_default(VCPU_ID, 0, l1_guest_code);
vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid());

0 comments on commit 11eada4

Please sign in to comment.