selftest: kvm: x86: test KVM_GET_CPUID2 and guest visible CPUIDs against KVM_GET_SUPPORTED_CPUID
Commit 181f4948 ("KVM: x86: fix CPUID entries returned by KVM_GET_CPUID2 ioctl") revealed that we're not testing KVM_GET_CPUID2 ioctl at all. Add a test for it and also check that from inside the guest visible CPUIDs are equal to it's output. Signed-off-by:Vitaly Kuznetsov <vkuznets@redhat.com> Message-Id: <20210129161821.74635-1-vkuznets@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- tools/testing/selftests/kvm/.gitignore 1 addition, 0 deletionstools/testing/selftests/kvm/.gitignore
- tools/testing/selftests/kvm/Makefile 1 addition, 0 deletionstools/testing/selftests/kvm/Makefile
- tools/testing/selftests/kvm/include/x86_64/processor.h 14 additions, 0 deletionstools/testing/selftests/kvm/include/x86_64/processor.h
- tools/testing/selftests/kvm/lib/x86_64/processor.c 42 additions, 0 deletionstools/testing/selftests/kvm/lib/x86_64/processor.c
- tools/testing/selftests/kvm/x86_64/get_cpuid_test.c 175 additions, 0 deletionstools/testing/selftests/kvm/x86_64/get_cpuid_test.c
Please register or sign in to comment