From patchwork Fri Jan 15 08:44:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 73112 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0F8iaK7001622 for ; Fri, 15 Jan 2010 08:44:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753914Ab0AOIoe (ORCPT ); Fri, 15 Jan 2010 03:44:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752283Ab0AOIoe (ORCPT ); Fri, 15 Jan 2010 03:44:34 -0500 Received: from mga01.intel.com ([192.55.52.88]:49731 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200Ab0AOIod (ORCPT ); Fri, 15 Jan 2010 03:44:33 -0500 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 15 Jan 2010 00:44:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.49,279,1262592000"; d="scan'208";a="531538252" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.36.165]) by fmsmga002.fm.intel.com with ESMTP; 15 Jan 2010 00:44:27 -0800 Received: from yasker by syang10-desktop with local (Exim 4.69) (envelope-from ) id 1NVhn9-0002gN-99; Fri, 15 Jan 2010 16:44:27 +0800 From: Sheng Yang To: Avi Kivity , Marcelo Tosatti Cc: kvm@vger.kernel.org, Sheng Yang Subject: [PATCH] KVM: Add missing emulation failure report in kvm_mmu_page_fault() Date: Fri, 15 Jan 2010 16:44:23 +0800 Message-Id: <1263545063-10285-1-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.6.3.3 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 4f5508c..037e52a 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -2791,6 +2791,7 @@ int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t cr2, u32 error_code) ++vcpu->stat.mmio_exits; return 0; case EMULATE_FAIL: + kvm_report_emulation_failure(vcpu, "emulation failure"); vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_EMULATION; vcpu->run->internal.ndata = 0;