KVM: selftests: Convert arch_timer away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 19:40:33 +0000 (11:40 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:07 +0000 (11:47 -0400)
commit7a5e4ae3db643e4b14453c5f67e4670a83284644
tree7383dd87b0974946a4b68bd12949579eaf0a8024
parent9980160482213a9334e864774f789336960568a3
KVM: selftests: Convert arch_timer away from VCPU_ID

Convert arch_timer 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/aarch64/arch_timer.c