KVM: selftests: Convert steal_time away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 19:24:01 +0000 (11:24 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:07 +0000 (11:47 -0400)
commit9980160482213a9334e864774f789336960568a3
tree5281d68bca532c6013784c8b0993bb6557f48e06
parent0ffc70eab775b52432a76f26aada24c5b78ef0eb
KVM: selftests: Convert steal_time away from VCPU_ID

Convert steal_time to use vm_create_with_vcpus() and pass around a
'struct kvm_vcpu' object instead of requiring that the index into the
array of vCPUs for a given vCPU is also the ID of the vCPU.

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