]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: emulator: Do not fail on emulation of undefined opcode
authorGleb Natapov <gleb@redhat.com>
Thu, 11 Apr 2013 09:30:01 +0000 (12:30 +0300)
committerGleb Natapov <gleb@redhat.com>
Sun, 14 Apr 2013 06:44:17 +0000 (09:44 +0300)
commit57d894b34d0c4878b2a5ada98a895cae1ba2f82c
tree396cf7dd64c7f38b7c50250e545b46b29e4134cc
parent18e78223e083b9d737602ddceb06d3f3f88938af
KVM: emulator: Do not fail on emulation of undefined opcode

Emulation of undefined opcode should inject #UD instead of causing
emulation failure. Do that by moving Undefined flag check to emulation
stage and injection #UD there.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/emulate.c