KVM: emulator: optimize "rep ins" handling
authorGleb Natapov <gleb@redhat.com>
Mon, 3 Sep 2012 12:24:29 +0000 (15:24 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 6 Sep 2012 15:07:38 +0000 (18:07 +0300)
commitb3356bf0dbb34980620f2f7def7d1b9a0d325225
tree508f58ece4a7ff5613181584fd0461e7cbfd5d20
parentf3bd64c68a8f1245e3d037f70c6936cd7bb1196b
KVM: emulator: optimize "rep ins" handling

Optimize "rep ins" by allowing emulator to write back more than one
datum at a time. Introduce new operand type OP_MEM_STR which tells
writeback() that dst contains pointer to an array that should be written
back as opposite to just one data element.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c