Re: [PATCH 0/3] KVM: x86: Fix incorrect handling of triple faults

From: Sean Christopherson

Date: Thu Mar 05 2026 - 12:33:45 EST


On Fri, 27 Feb 2026 01:13:03 +0000, Yosry Ahmed wrote:
> Fix a couple of bugs related to handling triple faults, namely KVM
> injecting a triple fault into an L2 that hasn't run yet, or KVM
> combining #DB/#BP from KVM_SET_GUEST_DEBUG with existing exceptions
> causing a triple fault (or #DF).
>
> Either of these bugs can result in a triple fault being injected with
> nested_run_pending=1, leading to triggering the warning in
> __nested_vmx_vmexit().
>
> [...]

Applied patch 3 to kvm-x86 misc, thanks!

[1/3] KVM: x86: Move nested_run_pending to kvm_vcpu_arch
(coming separately)
[2/3] KVM: x86: Do not inject triple faults into an L2 with a pending run
(DROP)
[3/3] KVM: x86: Check for injected exceptions before queuing a debug exception
https://github.com/kvm-x86/linux/commit/e907b4e72488

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