Re: [PATCH v5 0/6] KVM: nVMX: Synthesize SHUTDOWN on RSM with bad state

From: Sean Christopherson

Date: Wed Aug 05 2026 - 13:01:00 EST


On Fri, 31 Jul 2026 10:33:34 -0700, Sean Christopherson wrote:
> Synthesize SHUTDOWN if invalid guest state is detected a RSM, i.e. if SMRAM
> is clobbered by L1 (or host userspace) while handling an SMI that occurred
> while L2 was active. This fixes yet another case of syzkaller tripping KVM's
> sanity check that KVM doesn't cancel a pending nested VM-Enter.
>
> v5:
> - Fix goofs in patch 1. [Sashiko]
> - Print out correct target L1 vs. L2. [Sashiko]
>
> [...]

Applied to kvm-x86 misc, thanks!

[1/6] KVM: x86: Extract VMX's unhandleable emulation check to common x86
https://github.com/kvm-x86/linux/commit/a40764607eab
[2/6] KVM: nVMX: Synthesize SHUTDOWN on RSM if L2 requires emulation
https://github.com/kvm-x86/linux/commit/281a4e5f1086
[3/6] KVM: x86: Rework kvm_x86_ops.vcpu_pre_run() into .vcpu_needs_initialization()
https://github.com/kvm-x86/linux/commit/9fd7a4433d74
[4/6] KVM: selftests: Use port 0x80 in invalid nVMX guest state test
https://github.com/kvm-x86/linux/commit/6fc510e1f101
[5/6] KVM: selftests: Refactor invalid nVMX state test to prepare for RSM testcase
https://github.com/kvm-x86/linux/commit/2cb49770e28f
[6/6] KVM: selftests: Extend the invalid nVMX guest state test to cover RSM
https://github.com/kvm-x86/linux/commit/bc44a9ce73cd

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