KVM: selftests: Use __KVM_SYSCALL_ERROR() to handle non-KVM syscall errors
authorSean Christopherson <seanjc@google.com>
Wed, 4 May 2022 16:44:49 +0000 (09:44 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 14:21:07 +0000 (10:21 -0400)
commitf17cf5674a1e70c142cb3acb5eb7667560e62012
tree0fa7bcca49f247bc2bfd6aae9990d51e7ab52699
parentf9725f89dc5027c7d94f8fdfbac8bbad846a0891
KVM: selftests: Use __KVM_SYSCALL_ERROR() to handle non-KVM syscall errors

Use __KVM_SYSCALL_ERROR() to report and pretty print non-KVM syscall and
ioctl errors, e.g. for mmap(), munmap(), uffd ioctls, etc...

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/aarch64/vgic_irq.c
tools/testing/selftests/kvm/demand_paging_test.c
tools/testing/selftests/kvm/lib/kvm_util.c