]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48943325eb03b59c7b9bc5f0bcfea6d8a47cac0b
tree9546cbd35f40f7f4908ec75aba2b1da058a165a2
parent3d7ed2e034cb7a415cdfea79132c6b6d360ee4d4
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