Re: [PATCH v3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Avi Kivity
On 08/19/2010 03:09 PM, Gleb Natapov wrote: On Thu, Aug 19, 2010 at 02:34:08PM +0300, Avi Kivity wrote: EFLAGS.ZF needs to be checked after each iteration, not before. Signed-off-by: Avi Kivity --- v3: if restarting an instruction, don't advance rip arch/x86/kvm/emulate.c | 41 ++

Re: [PATCH v3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Gleb Natapov
On Thu, Aug 19, 2010 at 02:34:08PM +0300, Avi Kivity wrote: > EFLAGS.ZF needs to be checked after each iteration, not before. > > Signed-off-by: Avi Kivity > --- > > v3: if restarting an instruction, don't advance rip > > arch/x86/kvm/emulate.c | 41 -

[PATCH v3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Avi Kivity
EFLAGS.ZF needs to be checked after each iteration, not before. Signed-off-by: Avi Kivity --- v3: if restarting an instruction, don't advance rip arch/x86/kvm/emulate.c | 41 - 1 files changed, 20 insertions(+), 21 deletions(-) diff --git a/arch/x86/k