KVM: selftests: Use vcpu_access_device_attr() in arm64 code
authorSean Christopherson <seanjc@google.com>
Tue, 15 Feb 2022 19:23:34 +0000 (11:23 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 14:15:41 +0000 (10:15 -0400)
commitcaf12f3b1d629c06634b059acc7b18d05bb5fb94
treebd811908f7d9f9f9ec30f469748fd2aca5660248
parent38d4a385a345d807652f748822630f309786b658
KVM: selftests: Use vcpu_access_device_attr() in arm64 code

Use vcpu_access_device_attr() in arm's arch_timer test instead of
manually retrieving the vCPU's fd.  This will allow dropping vcpu_get_fd()
in a future patch.

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