[PATCH][RESEND] x86 emulator: Report unhandled instructions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Report unhandled instructions in the syslog on emulation failure

Signed-off-by: Mohammed Gamal <m.gamal005@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux