]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Multiplex return code and fd in __kvm_create_device()
authorSean Christopherson <seanjc@google.com>
Thu, 17 Feb 2022 20:21:33 +0000 (12:21 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:22 +0000 (11:46 -0400)
commitedb9d7c7d62ef0d7b4b774236385f6c69796bd7f
tree84e74b7563361b0ad79a364f62e903762fedfccf
parent0323a5999f8facae1cbb73e99a61abc6b9ed1117
KVM: selftests: Multiplex return code and fd in __kvm_create_device()

Multiplex the return value and fd (on success) in __kvm_create_device()
to mimic common library helpers that return file descriptors, e.g. open().

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