KVM: selftests: Split get/set device_attr helpers
authorSean Christopherson <seanjc@google.com>
Thu, 9 Jun 2022 20:06:57 +0000 (13:06 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:23 +0000 (11:46 -0400)
commit4091818426d98f4e7093808264caf86ad90287c8
tree9546cbd35f40f7f4908ec75aba2b1da058a165a2
parentd2752e2eb331cbbed6f51f901f2685654e1cafa7
KVM: selftests: Split get/set device_attr helpers

Split the get/set device_attr helpers instead of using a boolean param to
select between get and set.  Duplicating upper level wrappers is a very,
very small price to pay for improved readability, and having constant (at
compile time) inputs will allow the selftests framework to sanity check
ioctl() invocations.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/aarch64/arch_timer.c
tools/testing/selftests/kvm/aarch64/vgic_init.c
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/lib/aarch64/vgic.c
tools/testing/selftests/kvm/lib/guest_modes.c
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/system_counter_offset_test.c