Re: [PATCH] KVM: VMX: Reject KVM_RUN if userspace forces emulation during nested VM-Enter
From: Sean Christopherson
Date: Fri Feb 28 2025 - 18:42:11 EST
On Mon, 24 Feb 2025 09:14:09 -0800, Sean Christopherson wrote:
> Extend KVM's restrictions on userspace forcing "emulation required" at odd
> times to cover stuffing invalid guest state while a nested run is pending.
> Clobbering guest state while KVM is in the middle of emulating VM-Enter is
> nonsensical, as it puts the vCPU into an architecturally impossible state,
> and will trip KVM's sanity check that guards against KVM bugs, e.g. helps
> detect missed VMX consistency checks.
>
> [...]
Applied to kvm-x86 vmx, thanks!
[1/1] KVM: VMX: Reject KVM_RUN if userspace forces emulation during nested VM-Enter
https://github.com/kvm-x86/linux/commit/64c947a1cf35
--
https://github.com/kvm-x86/linux/tree/next