From: Joerg Roedel Date: Wed, 24 Feb 2010 17:59:19 +0000 (+0100) Subject: KVM: SVM: Clear exit_info for injected INTR exits X-Git-Tag: v3.12-rc1~10241^2~210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=197717d5813fc39a7185a3177b76f4a3b2405df7;p=kernel%2Fkernel-generic.git KVM: SVM: Clear exit_info for injected INTR exits When injecting an vmexit.intr into the nested hypervisor there might be leftover values in the exit_info fields. Clear them to not confuse nested hypervisors. 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 631d2e5..38f1fce 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1491,7 +1491,9 @@ static inline bool nested_svm_intr(struct vcpu_svm *svm) if (!(svm->vcpu.arch.hflags & HF_HIF_MASK)) return false; - svm->vmcb->control.exit_code = SVM_EXIT_INTR; + svm->vmcb->control.exit_code = SVM_EXIT_INTR; + svm->vmcb->control.exit_info_1 = 0; + svm->vmcb->control.exit_info_2 = 0; if (svm->nested.intercept & 1ULL) { /*