From: Joerg Roedel Date: Thu, 22 Apr 2010 10:33:14 +0000 (+0200) Subject: KVM: SVM: Handle MCE intercepts always on host level X-Git-Tag: v2.6.35-rc1~436^2~36 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=ff47a49b235e59e606e1cb267a08f7fbeb5719d1;p=~emulex%2Finfiniband.git KVM: SVM: Handle MCE intercepts always on host level This patch prevents MCE intercepts from being propagated into the L1 guest if they happened in an L2 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 30e49fe7f8c..889f66022e5 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1651,6 +1651,7 @@ static int nested_svm_exit_special(struct vcpu_svm *svm) switch (exit_code) { case SVM_EXIT_INTR: case SVM_EXIT_NMI: + case SVM_EXIT_EXCP_BASE + MC_VECTOR: return NESTED_EXIT_HOST; case SVM_EXIT_NPF: /* For now we are always handling NPFs when using them */