|
@@ -982,7 +982,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log)
|
|
|
|
|
|
|
|
/* If nothing is dirty, don't bother messing with page tables. */
|
|
/* If nothing is dirty, don't bother messing with page tables. */
|
|
|
if (is_dirty) {
|
|
if (is_dirty) {
|
|
|
- memslot = &kvm->memslots->memslots[log->slot];
|
|
|
|
|
|
|
+ memslot = id_to_memslot(kvm->memslots, log->slot);
|
|
|
|
|
|
|
|
ga = memslot->base_gfn << PAGE_SHIFT;
|
|
ga = memslot->base_gfn << PAGE_SHIFT;
|
|
|
ga_end = ga + (memslot->npages << PAGE_SHIFT);
|
|
ga_end = ga + (memslot->npages << PAGE_SHIFT);
|