From: Mohammed Gamal Subject: [PATCH][RESEND] x86 emulator: Report unhandled instructions Date: Sun, 23 Aug 2009 14:24:26 +0300 Message-ID: <1251026666-14314-3-git-send-email-m.gamal005@gmail.com> References: <1251026666-14314-1-git-send-email-m.gamal005@gmail.com> <1251026666-14314-2-git-send-email-m.gamal005@gmail.com> Cc: kvm@vger.kernel.org, Mohammed Gamal To: avi@redhat.com Return-path: Received: from mail-ew0-f207.google.com ([209.85.219.207]:41716 "EHLO mail-ew0-f207.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933485AbZHWLYe (ORCPT ); Sun, 23 Aug 2009 07:24:34 -0400 Received: by mail-ew0-f207.google.com with SMTP id 3so1677707ewy.18 for ; Sun, 23 Aug 2009 04:24:36 -0700 (PDT) In-Reply-To: <1251026666-14314-2-git-send-email-m.gamal005@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Report unhandled instructions in the syslog on emulation failure Signed-off-by: Mohammed Gamal --- arch/x86/kvm/emulate.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index cc0fe39..52a4b7d 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -2194,6 +2194,7 @@ writeback: done: if (rc == X86EMUL_UNHANDLEABLE) { + kvm_report_emulation_failure(ctxt->vcpu, "unhandled instruction"); c->eip = saved_eip; return -1; } @@ -2467,7 +2468,7 @@ twobyte_insn: goto writeback; cannot_emulate: - DPRINTF("Cannot emulate %02x\n", c->b); + kvm_report_emulation_failure(ctxt->vcpu, "unhandled instruction"); c->eip = saved_eip; return -1; } -- 1.6.0.4