KVM: mips: use id_to_memslot correctly
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 May 2015 06:35:43 +0000 (08:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2015 16:45:41 +0000 (09:45 -0700)
commit5fb290d840d571fda2036485e493f1c8e9789001
tree75522e6c359b846ba96f9d0ea53f93f06369c9e3
parent13485fd9b6acd6aa0b9907b3666f691d35e1bf6a
KVM: mips: use id_to_memslot correctly

commit 69a1220060c1523fd0515216eaa29e22f133b894 upstream.

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.

Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/kvm/mips.c