aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-07-13 16:40:23 +0300
committerAvi Kivity <avi@redhat.com>2010-08-02 06:40:49 +0300
commitc0e0608cb902af1a1fd8d413ec0a07ee1e62c652 (patch)
treed503fb8dd796a5cb2acdc54ada64073fe743b703
parent24157aaf833261e68e5a398fa54bd15e4fa1d0b7 (diff)
downloadkernel_goldelico_gta04-c0e0608cb902af1a1fd8d413ec0a07ee1e62c652.zip
kernel_goldelico_gta04-c0e0608cb902af1a1fd8d413ec0a07ee1e62c652.tar.gz
kernel_goldelico_gta04-c0e0608cb902af1a1fd8d413ec0a07ee1e62c652.tar.bz2
KVM: x86: emulator: inc/dec can have lock prefix
Mark inc (0xfe/0 0xff/0) and dec (0xfe/1 0xff/1) as lock prefix capable. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--arch/x86/kvm/emulate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index 255473f..b38bd8b 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -345,10 +345,10 @@ static u32 group_table[] = {
DstMem | SrcNone | ModRM, DstMem | SrcNone | ModRM,
0, 0, 0, 0,
[Group4*8] =
- ByteOp | DstMem | SrcNone | ModRM, ByteOp | DstMem | SrcNone | ModRM,
+ ByteOp | DstMem | SrcNone | ModRM | Lock, ByteOp | DstMem | SrcNone | ModRM | Lock,
0, 0, 0, 0, 0, 0,
[Group5*8] =
- DstMem | SrcNone | ModRM, DstMem | SrcNone | ModRM,
+ DstMem | SrcNone | ModRM | Lock, DstMem | SrcNone | ModRM | Lock,
SrcMem | ModRM | Stack, 0,
SrcMem | ModRM | Stack, SrcMemFAddr | ModRM | ImplicitOps,
SrcMem | ModRM | Stack, 0,