Commit 138e4ccd authored by Mohammed Gamal's avatar Mohammed Gamal Committed by Avi Kivity

KVM: x86 emulator: Report unhandled instructions

Report unhandled instructions in the syslog on emulation failure
Signed-off-by: default avatarMohammed Gamal <m.gamal005@gmail.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent fc4abdba
......@@ -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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment