Re: [PATCH] KVM: nVMX: Clear nested.smm.guest_mode on a failed RSM-to-L2
From: Sean Christopherson
Date: Fri Nov 13 2026 - 10:17:53 EST
On Sat, 17 Oct 2026 11:30:10 +0200, Amirmohammad Eftekhar wrote:
> vmx_leave_smm() consumes nested.smm.vmxon into nested.vmxon up front, but
> clears nested.smm.guest_mode only on the success path. On either failure
> arm (nested_vmx_check_restored_vmcs12() < 0, or
> nested_vmx_enter_non_root_mode() != NVMX_VMENTRY_SUCCESS) it returns early
> with nested.smm.guest_mode still true while nested.smm.vmxon is already
> false.
>
> [...]
Applied to kvm-x86 fixes, thanks!
[1/1] KVM: nVMX: Clear nested.smm.guest_mode on a failed RSM-to-L2
https://github.com/kvm-x86/linux/commit/bcc359264f15
--
https://github.com/kvm-x86/linux/tree/next