]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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:49:36 +0000 (09:49 -0700)
commitdff1316f4f15d9c3ff3ff9c11f2c92e0a2040a49
tree4a51b60015d177e8acc24fc8300e801d9a442783
parentb6f2faffa0a189c28a2f2242c0b23fb031ba3075
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