X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=arch%2Fx86%2Fkvm%2Fx86.c;h=2b8578432d5bccd296fa6d5859e3575c0fe4aa02;hb=084c6c5013af3c62f1c344435214496f5ac999f2;hp=39c28f09dfd5f03ca064be4bb5cfa01eb0d673a4;hpb=4675348e78fab420e70f9144b320d9c063c7cee8;p=~andy%2Flinux diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 39c28f09dfd..2b8578432d5 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -6186,7 +6186,7 @@ static int complete_emulated_mmio(struct kvm_vcpu *vcpu) frag->len -= len; } - if (vcpu->mmio_cur_fragment == vcpu->mmio_nr_fragments) { + if (vcpu->mmio_cur_fragment >= vcpu->mmio_nr_fragments) { vcpu->mmio_needed = 0; /* FIXME: return into emulator if single-stepping. */