KVM: x86: POPA emulation may not clear bits [63:32]
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 30 Mar 2015 12:39:20 +0000 (15:39 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Mar 2015 14:46:03 +0000 (16:46 +0200)
commit6fd8e1275709a5bb084847eda6730b983538a572
treeac9bd3385ff16bb9b64b1abadd957bbe64b9d184
parentb91aa14d95bf4cf8ed0426bd25c0af1548519696
KVM: x86: POPA emulation may not clear bits [63:32]

POPA should assign the values to the registers as usual registers are assigned.
In other words, 32-bits register assignments should clear bits [63:32] of the
register.

Split the code of register assignments that will be used by future changes as
well.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Message-Id: <1427719163-5429-3-git-send-email-namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c