]> Gentwo Git Trees - linux/.git/commit
KVM: selftests: Add support for MSR_IA32_{S,U}_CET to MSRs test
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 22:32:53 +0000 (15:32 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 16:51:59 +0000 (09:51 -0700)
commit27c41353064f9fdec9276e6b8e618b01110ef282
treea492e247707ccff5c630c710e3d4bd54ab2cb68d
parent9c38ddb3df94acdc86485c7073610f01655309f9
KVM: selftests: Add support for MSR_IA32_{S,U}_CET to MSRs test

Extend the MSRs test to support {S,U}_CET, which are a bit of a pain to
handled due to the MSRs existing if IBT *or* SHSTK is supported.  To deal
with Intel's wonderful decision to bundle IBT and SHSTK under CET, track
the second feature, but skip only RDMSR #GP tests to avoid false failures
when running on a CPU with only one of IBT or SHSTK (the WRMSR #GP tests
are still valid since the enable bits are per-feature).

Reviewed-by: Chao Gao <chao.gao@intel.com>
Link: https://lore.kernel.org/r/20250919223258.1604852-47-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/msrs_test.c