]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: fix handling for unemulated instructions
authorAvi Kivity <avi@redhat.com>
Sun, 25 Jul 2010 11:51:16 +0000 (14:51 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:49:47 +0000 (10:49 +0200)
commit3bdace5bb2e3f49b88a402e827914eb9e87bc62f
treec689dd55c0146c9eb3a14efdfc6344fb181ccc7f
parent5103e40e1e209f64d6f0aa43adb7d55a081ff1fa
KVM: x86 emulator: fix handling for unemulated instructions

If an instruction is present in the decode tables but not in the execution
switch, it will be emulated as a NOP.  An example is IRET (0xcf).

Fix by adding default: labels to the execution switches.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c