KVM: selftests: Add hyperv_cpuid test
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 10 Dec 2018 17:21:59 +0000 (18:21 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Dec 2018 16:59:56 +0000 (17:59 +0100)
commit7edcb73433276d1b7bc82863df0aa9d229f5686c
tree32f0ef2755aa13730045b28adf7bebb0d43d049d
parent7e50c424f8e2315182540a32edb6f19024d26c8b
KVM: selftests: Add hyperv_cpuid test

Add a simple (and stupid) hyperv_cpuid test: check that we got the
expected number of entries with and without Enlightened VMCS enabled
and that all currently reserved fields are zeroed.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c [new file with mode: 0644]