Re: [PATCH v5 07/26] KVM: nSVM: Triple fault if restore host CR3 fails on nested #VMEXIT

From: Sean Christopherson

Date: Mon Feb 23 2026 - 19:38:42 EST


On Fri, Feb 06, 2026, Yosry Ahmed wrote:
> @@ -1140,7 +1140,7 @@ int nested_svm_vmexit(struct vcpu_svm *svm)
>
> if (kvm_vcpu_map(vcpu, gpa_to_gfn(vmcb12_gpa), &map)) {
> kvm_make_request(KVM_REQ_TRIPLE_FAULT, vcpu);
> - return 1;
> + return;
> }

And then here I think we can do the same thing, e.g.

if (nested_svm_load_cr3(vcpu, vmcb01->save.cr3, false, true))
kvm_make_request(KVM_REQ_TRIPLE_FAULT, vcpu);