]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: fix regression with cmpxchg8b on i386 hosts
authorAvi Kivity <avi@redhat.com>
Thu, 26 Aug 2010 11:31:30 +0000 (14:31 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 8 Sep 2010 17:50:55 +0000 (14:50 -0300)
commitdb1dc06f59cbd3c68f54b5e7f46a88d1089984e2
tree1ecef3f87959e48d34f2815ddd66b49da1adfa3d
parent05ca25b816babd654dda36d3bb5171f66ea5e3fc
KVM: x86 emulator: fix regression with cmpxchg8b on i386 hosts

operand::val and operand::orig_val are 32-bit on i386, whereas cmpxchg8b
operands are 64-bit.

Fix by adding val64 and orig_val64 union members to struct operand, and
using them where needed.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c