KVM: x86: 32-bit wraparound read/write not emulated correctly
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 26 Jan 2015 07:32:26 +0000 (09:32 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Jan 2015 11:15:18 +0000 (12:15 +0100)
commitbac155310be35e0fa64b066d47625d2a12a75122
tree14dd9f7eae1b56432132c6d89c30eeb4b9f846b6
parent2b42fce6954d1730edaf479d02378703e7b821cb
KVM: x86: 32-bit wraparound read/write not emulated correctly

If we got a wraparound of 32-bit operand, and the limit is 0xffffffff, read and
writes should be successful. It just needs to be done in two segments.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c