KVM: selftests: Purge vm+vcpu_id == vcpu silliness
Take a vCPU directly instead of a VM+vcpu pair in all vCPU-scoped helpers and ioctls. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
5260db3eb8
commit
768e9a6185
@@ -174,7 +174,7 @@ static void vm_stats_test(struct kvm_vm *vm)
|
||||
|
||||
static void vcpu_stats_test(struct kvm_vcpu *vcpu)
|
||||
{
|
||||
int stats_fd = vcpu_get_stats_fd(vcpu->vm, vcpu->id);
|
||||
int stats_fd = vcpu_get_stats_fd(vcpu);
|
||||
|
||||
stats_test(stats_fd);
|
||||
close(stats_fd);
|
||||
|
||||
Reference in New Issue
Block a user