From: Joerg Roedel Date: Thu, 22 Apr 2010 10:33:10 +0000 (+0200) Subject: KVM: SVM: Propagate nested entry failure into guest hypervisor X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=228070b1b31abc16c331b57bf965101c6eb1d167;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git KVM: SVM: Propagate nested entry failure into guest hypervisor This patch implements propagation of a failes guest vmrun back into the guest instead of killing the whole guest. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 5ad9d802bd16..b10d1630c203 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1715,6 +1715,10 @@ static int nested_svm_intercept(struct vcpu_svm *svm) vmexit = NESTED_EXIT_DONE; break; } + case SVM_EXIT_ERR: { + vmexit = NESTED_EXIT_DONE; + break; + } default: { u64 exit_bits = 1ULL << (exit_code - SVM_EXIT_INTR); if (svm->nested.intercept & exit_bits)