]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Precisely mask off dynamic fields in CPUID test
authorSean Christopherson <seanjc@google.com>
Thu, 3 Oct 2024 23:43:28 +0000 (16:43 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Nov 2024 16:26:28 +0000 (09:26 -0700)
commitf2c5aa31670d8532dc820c110faf96d0cdbba7d9
tree517a608ede5b3da4acba41594a12b2feb2e6d525
parentf8912210eb21b6288634fca4ee60bcc5f7c58756
KVM: selftests: Precisely mask off dynamic fields in CPUID test

When comparing vCPU CPUID entries against KVM's supported CPUID, mask off
only the dynamic fields/bits instead of skipping the entire entry.
Precisely masking bits isn't meaningfully more difficult than skipping
entire entries, and will be necessary to maintain test coverage when a
future commit enables OSXSAVE by default, i.e. makes one bit in all of
CPUID.0x1 dynamic.

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