KVM: selftests: Track kvm_vcpu object in tsc_scaling_sync
authorSean Christopherson <seanjc@google.com>
Mon, 18 Apr 2022 18:28:21 +0000 (11:28 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:59 +0000 (11:46 -0400)
commitee7f7d9e988e137f20a34b8c02dd28dd5312e3f1
treebb8cfcd4c0b6cfe6b12e9e1d9067b98fbfd496c9
parent10f0b222ea7e0ab90e7c72a255ce8e4f284b12e3
KVM: selftests: Track kvm_vcpu object in tsc_scaling_sync

Track the added 'struct kvm_vcpu' object in tsc_scaling_sync instead of
relying purely on the VM + vcpu_id combination.  Ideally, the test
wouldn't need to manually manage vCPUs, but the need to invoke a per-VM
ioctl before creating vCPUs is not handled by the selftests framework,
at least not yet...

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