]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Fix update RCX/RDI/RSI on REP-string
authorNadav Amit <namit@cs.technion.ac.il>
Tue, 28 Apr 2015 10:06:00 +0000 (13:06 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 May 2015 18:52:35 +0000 (20:52 +0200)
commitab970ed6c772d34622319a3e14457f3f6deee47b
tree5760163eb46dcdc5dc594317336384d0d34d8c9f
parentf258d94ae079f92616846d364fcc22f785ddb680
KVM: x86: Fix update RCX/RDI/RSI on REP-string

When REP-string instruction is preceded with an address-size prefix,
ECX/EDI/ESI are used as the operation counter and pointers.  When they are
updated, the high 32-bits of RCX/RDI/RSI are cleared, similarly to the way they
are updated on every 32-bit register operation.  Fix it.

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