OSDN Git Service

KVM: selftests: Extend cpuid_test to verify KVM_GET_CPUID2 "nent" updates
authorSean Christopherson <seanjc@google.com>
Fri, 26 May 2023 21:03:40 +0000 (14:03 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 1 Jun 2023 21:07:14 +0000 (14:07 -0700)
commit2c76131319982f9c9410bc12127ac1df4e810b87
tree77b1398fb3e9b8e516a6712069f945bea2355b13
parentab322c43cce97ff6d05439c9b72bf1513e3e1020
KVM: selftests: Extend cpuid_test to verify KVM_GET_CPUID2 "nent" updates

Verify that KVM reports the actual number of CPUID entries on success, but
doesn't touch the userspace struct on failure (which for better or worse,
is KVM's ABI).

Link: https://lore.kernel.org/r/20230526210340.2799158-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/cpuid_test.c