]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06fc86a93a6c5bad0345e9346ca5a6eab3ef3852
treebd811908f7d9f9f9ec30f469748fd2aca5660248
parent92aae9d11f34d406073b06b698a939e99da6060e
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