KVM: selftests: Test Hyper-V extended hypercall exit to userspace
authorVipin Sharma <vipinsh@google.com>
Mon, 12 Dec 2022 18:37:20 +0000 (10:37 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 1 Feb 2023 22:31:27 +0000 (14:31 -0800)
commit60325261235accc838158c82b403086e0e76e6a9
tree3b5b42e20292e7e25690964cfba5ed886e704c54
parentf65092015a83348fdc2f509e4ad8278e0c2df0cd
KVM: selftests: Test Hyper-V extended hypercall exit to userspace

Hyper-V extended hypercalls by default exit to userspace. Verify
userspace gets the call, update the result and then verify in guest
correct result is received.

Add KVM_EXIT_HYPERV to list of "known" hypercalls so errors generate
pretty strings.

Signed-off-by: Vipin Sharma <vipinsh@google.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20221212183720.4062037-14-vipinsh@google.com
[sean: add KVM_EXIT_HYPERV to exit_reasons_known]
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/x86_64/hyperv_extended_hypercalls.c [new file with mode: 0644]