Re: [PATCH] KVM: x86: Call out MSR_IA32_S_CET is not handled by XSAVES

From: Sean Christopherson
Date: Tue Nov 04 2025 - 12:46:08 EST


On Mon, 27 Oct 2025 23:01:41 -0700, Chao Gao wrote:
> Update the comment above is_xstate_managed_msr() to note that
> MSR_IA32_S_CET isn't saved/restored by XSAVES/XRSTORS.
>
> MSR_IA32_S_CET isn't part of CET_U/S state as the SDM states:
> The register state used by Control-Flow Enforcement Technology (CET)
> comprises the two 64-bit MSRs (IA32_U_CET and IA32_PL3_SSP) that manage
> CET when CPL = 3 (CET_U state); and the three 64-bit MSRs
> (IA32_PL0_SSP–IA32_PL2_SSP) that manage CET when CPL < 3 (CET_S state).
>
> [...]

Applied to kvm-x86 fixes, with an opportunistic tweak of the comment (the whole
spiel about the safety was attached to the wrong function). Thanks!

[1/1] KVM: x86: Call out MSR_IA32_S_CET is not handled by XSAVES
https://github.com/kvm-x86/linux/commit/cab4098be418

--
https://github.com/kvm-x86/linux/tree/next