]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Move KVM_CREATE_DEVICE_TEST code to separate helper
authorSean Christopherson <seanjc@google.com>
Thu, 17 Feb 2022 20:16:20 +0000 (12:16 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:21 +0000 (11:46 -0400)
commit0323a5999f8facae1cbb73e99a61abc6b9ed1117
tree4e3ee8c2a404869ca09821616135fc29dd81e23b
parentfda4cdb79e89a575bbd0b1a07094b52b294516c8
KVM: selftests: Move KVM_CREATE_DEVICE_TEST code to separate helper

Move KVM_CREATE_DEVICE_TEST to its own helper, identifying "real" versus
"test" device creation based on a hardcoded boolean buried in the middle
of a param list is painful for readers.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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/kvm_util.c