]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: movnti minimum op size of 32-bit is not kept
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 2 Jun 2014 15:34:08 +0000 (18:34 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 15:46:18 +0000 (17:46 +0200)
commit5013aac1b6432b5776337d830b888a9146910b9a
tree7d49f500c0793ad3ae29917c27794d4e306943b7
parent484de7f1a22bb26e2c4a8922a968dcb0adc01c6e
KVM: x86: movnti minimum op size of 32-bit is not kept

If the operand-size prefix (0x66) is used in 64-bit mode, the emulator would
assume the destination operand is 64-bit, when it should be 32-bit.

Reminder: movnti does not support 16-bit operands and its default operand size
is 32-bit.

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