]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: Make x86_decode_insn() return proper macros
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Sat, 30 Jul 2011 09:03:34 +0000 (18:03 +0900)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:18:01 +0000 (19:18 +0300)
commitb72a7f44176a352554d64fa8dcd5c0a1f072897b
tree9ca6e1bfdf14e646b9816aa45a18230e1880784d
parent091fde1dbea7926c7e6c0b7c02b4fcf1e862e19e
KVM: x86 emulator: Make x86_decode_insn() return proper macros

Return EMULATION_OK/FAILED consistently.  Also treat instruction fetch
errors, not restricted to X86EMUL_UNHANDLEABLE, as EMULATION_FAILED;
although this cannot happen in practice, the current logic will continue
the emulation even if the decoder fails to fetch the instruction.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c