From 054b1369679fb97582fc77f25a700d4290ff3e89 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Wed, 12 Sep 2007 13:21:09 +0300 Subject: KVM: Improve emulation failure reporting Report failed opcodes from all locations. Signed-off-by: Avi Kivity --- drivers/kvm/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/kvm/vmx.c') diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index c44c9ac79ca..4f115a8e45e 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c @@ -1798,7 +1798,7 @@ static int handle_exception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) ++vcpu->stat.mmio_exits; return 0; case EMULATE_FAIL: - vcpu_printf(vcpu, "%s: emulate fail\n", __FUNCTION__); + kvm_report_emulation_failure(vcpu, "pagetable"); break; default: BUG(); -- cgit v1.2.3