x86/HVM: correct repeat count update in linear->phys translation
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Sep 2017 14:23:46 +0000 (16:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Sep 2017 14:23:46 +0000 (16:23 +0200)
commit49160d205236d8e36d27d40b6bf69b9b75f2c333
tree7a61282d998f0fb59a009c3cadfe4479396a27f2
parent556f99de901f5461fb1b8723413e77e3c98b0410
x86/HVM: correct repeat count update in linear->phys translation

For the insn emulator's fallback logic in REP INS/OUTS handling
to work correctly, *reps must not be set to zero when returning
X86EMUL_UNHANDLEABLE.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Paul Durrant <paul.durrant@citrix.com>
xen/arch/x86/hvm/emulate.c