]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Use vm_create() in tsc_scaling_sync
authorSean Christopherson <seanjc@google.com>
Tue, 19 Apr 2022 00:35:33 +0000 (17:35 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:14 +0000 (11:47 -0400)
commitfad516f8696faacb4865ce85bfbda984398349e7
treefdbcac2ec0be96165789808deb613121a16802b4
parenteebc8633de947a37c126d3d6e247024ce209b4ce
KVM: selftests: Use vm_create() in tsc_scaling_sync

Use vm_create() instead of vm_create_default_with_vcpus() in
tsc_scaling_sync.  The existing call doesn't create any vCPUs, and the
guest_code() entry point is set when vm_vcpu_add_default() is invoked.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/tsc_scaling_sync.c