Skip to content

Commit 83754e4

Browse files
Yosry Ahmedgregkh
authored andcommitted
KVM: nSVM: Clear GIF on nested #VMEXIT(INVALID)
commit f85a6ce upstream. According to the APM, GIF is set to 0 on any #VMEXIT, including an #VMEXIT(INVALID) due to failed consistency checks. Clear GIF on consistency check failures. Fixes: 3d6368e ("KVM: SVM: Add VMRUN handler") Cc: stable@vger.kernel.org Signed-off-by: Yosry Ahmed <yosry@kernel.org> Link: https://patch.msgid.link/20260303003421.2185681-11-yosry@kernel.org Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ddc242a commit 83754e4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/x86/kvm/svm/nested.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ int nested_svm_vmrun(struct kvm_vcpu *vcpu)
884884
vmcb12->control.exit_code_hi = -1u;
885885
vmcb12->control.exit_info_1 = 0;
886886
vmcb12->control.exit_info_2 = 0;
887+
svm_set_gif(svm, false);
887888
goto out;
888889
}
889890

0 commit comments

Comments
 (0)