]> git.baikalelectronics.ru Git - kernel.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)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 May 2015 18:52:44 +0000 (20:52 +0200)
commit18460aa6205d9e9e1b212645ab59ac13865b14e7
tree5cbe5e132d31ffeeecfcc91337a24489bbdb7dfc
parent004e6e4a6f53dbb6db53f6ad5560cf957585ca1f
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