Re: [PATCH] KVM: x86 emulator: fix regression with cmpxchg8b on i386 hosts

Marcelo Tosatti
2010-08-26T20:47:58Z

On Thu, Aug 26, 2010 at 02:31:30PM +0300, Avi Kivity wrote:
> 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>
> ---
> arch/x86/include/asm/kvm_emulate.h | 6 +++++-
> arch/x86/kvm/emulate.c | 9 ++++-----
> 2 files changed, 9 insertions(+), 6 deletions(-)

Applied, thanks.