]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: fix negative bit offset BitOp instruction emulation
authorWei Yongjun <yjwei@cn.fujitsu.com>
Mon, 9 Aug 2010 03:34:56 +0000 (11:34 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:01 +0000 (10:51 +0200)
commit0008eaae3931e6c1bb43e3f29082ce60b5fe1934
tree3af2786b912d11c373c5eed7df590070bce089b3
parent7628fdb4bf1527684f5c15db37ffa7f6c873ddf1
KVM: x86 emulator: fix negative bit offset BitOp instruction emulation

If bit offset operands is a negative number, BitOp instruction
will return wrong value. This patch fix it.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c