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)
commit98f94ce42ac672b2abdcf38cfc0e60fd52e04995
tree4e3ee8c2a404869ca09821616135fc29dd81e23b
parentf3165dc02212e8eaf5cb675f105aac89c6de431c
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