]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88553402cb7c6f638e5d930127fbb22e550d9501
tree5281d68bca532c6013784c8b0993bb6557f48e06
parent7fbf8675aa2f96bce43abaa82d72528ff0ed68ff
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