Re: [PATCH v9 10/22] KVM: VMX: Add support for saving and restoring FRED MSRs
From: Xin Li
Date: Mon Dec 01 2025 - 01:21:53 EST
>
>> @@ -4316,6 +4374,12 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
>> #endif
>> case MSR_IA32_U_CET:
>> case MSR_IA32_PL0_SSP ... MSR_IA32_PL3_SSP:
>> + if (!guest_cpu_cap_has(vcpu, X86_FEATURE_SHSTK)) {
>> + WARN_ON_ONCE(msr != MSR_IA32_FRED_SSP0);
>
> This will be triggered if the guest only supports IBT and tries to write U_CET here.
You’re right, my stupid.