KVM: mips: use id_to_memslot correctly
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 May 2015 06:35:43 +0000 (08:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 May 2015 18:52:44 +0000 (20:52 +0200)
commit69a1220060c1523fd0515216eaa29e22f133b894
tree5cbe5e132d31ffeeecfcc91337a24489bbdb7dfc
parentd81135a57aa66e5bec55cdfe4dda79633f9082dd
KVM: mips: use id_to_memslot correctly

The argument to KVM_GET_DIRTY_LOG is a memslot id; it may not match the
position in the memslots array, which is sorted by gfn.

Cc: stable@vger.kernel.org
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/mips.c