OSDN Git Service

KVM: emulator: fix unimplemented instruction detection
authorGleb Natapov <gleb@redhat.com>
Thu, 11 Apr 2013 08:59:55 +0000 (11:59 +0300)
committerGleb Natapov <gleb@redhat.com>
Sun, 14 Apr 2013 06:44:16 +0000 (09:44 +0300)
commit0b789eee2c0204da83278f181428560faf6efefb
tree033042a99893a21f21425bc7c6af8f2686cf200c
parentf8da94e9e44b237fa5cc8521faeb714dc2e83b54
KVM: emulator: fix unimplemented instruction detection

Unimplemented instruction detection is broken for group instructions
since it relies on "flags" field of opcode to be zero, but all
instructions in a group inherit flags from a group encoding. Fix that by
having a separate flag for unimplemented instructions.

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