]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94dca0ccf1872b2a9d4ac99793996bb65e4aadf5
treebb8cfcd4c0b6cfe6b12e9e1d9067b98fbfd496c9
parent82a0fe9f907d43b4279338e28bb707a5c4d35548
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