KVM: x86 emulator: Add LOCK prefix validity checking
authorGleb Natapov <gleb@redhat.com>
Wed, 10 Feb 2010 12:21:36 +0000 (14:21 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:11 +0000 (12:36 -0300)
commitd380a5e4022a5c63a6c5ac631e48c752ba7f1e4f
tree06346e56054146b10e6669ea358c07d85333d544
parente92805ac1228626c59c865f2f4e9059b9fb8c97b
KVM: x86 emulator: Add LOCK prefix validity checking

Instructions which are not allowed to have LOCK prefix should
generate #UD if one is used.

[avi: fold opcode 82 fix from another patch]

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