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)
commit16518d5ada690643453eb0aef3cc7841d3623c2d
tree1ecef3f87959e48d34f2815ddd66b49da1adfa3d
parentd56557af19867edb8c0e96f8e26399698a08857f
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