]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Mask off OSPKE and OSXSAVE when comparing CPUID entries
authorSean Christopherson <seanjc@google.com>
Thu, 3 Oct 2024 23:43:29 +0000 (16:43 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Nov 2024 16:26:29 +0000 (09:26 -0700)
commit164cea33bfedf883651d8d8b2db2fa867b48ecb0
treea7b14b98b7eae99014f75ac80a086aeb42df9a42
parentf2c5aa31670d8532dc820c110faf96d0cdbba7d9
KVM: selftests: Mask off OSPKE and OSXSAVE when comparing CPUID entries

Mask off OSPKE and OSXSAVE, which are toggled based on corresponding CR4
enabling bits, when comparing vCPU CPUID against KVM's supported CPUID.
This will allow setting OSXSAVE by default when creating vCPUs, without
causing test failures (KVM doesn't enumerate OSXSAVE=1).

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