KVM: selftests: Test Hyper-V extended hypercall enablement
authorVipin Sharma <vipinsh@google.com>
Mon, 12 Dec 2022 18:37:17 +0000 (10:37 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 1 Feb 2023 21:46:24 +0000 (13:46 -0800)
commitc4a46627e5a846e59f0097e3196f142eb6142f4f
tree64cbd9ed3916d02f44a1e1941976a0eef6a05ae2
parentdb9cf24cea69773410f0049bdfa795d7c2bd0ea9
KVM: selftests: Test Hyper-V extended hypercall enablement

Test Hyper-V extended hypercall, HV_EXT_CALL_QUERY_CAPABILITIES
(0x8001), access denied and invalid parameter cases.

Access is denied if CPUID.0x40000003.EBX BIT(20) is not set.
Invalid parameter if call has fast bit set.

Signed-off-by: Vipin Sharma <vipinsh@google.com>
Link: https://lore.kernel.org/r/20221212183720.4062037-11-vipinsh@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/include/x86_64/hyperv.h
tools/testing/selftests/kvm/x86_64/hyperv_features.c