diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-12-23 11:35:16 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:43 -0500 |
commit | 46a26bf55714c1e2f17e34683292a389acb8e601 (patch) | |
tree | 3df70225ce6a076d7e4be604a5d72465383043ee /arch/powerpc/kvm/book3s.c | |
parent | 2044892d4a005a78796c92fd1aef4633be896698 (diff) |
KVM: modify memslots layout in struct kvm
Have a pointer to an allocated region inside struct kvm.
[alex: fix ppc book 3s]
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/book3s.c')
-rw-r--r-- | arch/powerpc/kvm/book3s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c index 803505d3e455..bb8873dcb20f 100644 --- a/arch/powerpc/kvm/book3s.c +++ b/arch/powerpc/kvm/book3s.c | |||
@@ -865,7 +865,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, | |||
865 | 865 | ||
866 | /* If nothing is dirty, don't bother messing with page tables. */ | 866 | /* If nothing is dirty, don't bother messing with page tables. */ |
867 | if (is_dirty) { | 867 | if (is_dirty) { |
868 | memslot = &kvm->memslots[log->slot]; | 868 | memslot = &kvm->memslots->memslots[log->slot]; |
869 | 869 | ||
870 | ga = memslot->base_gfn << PAGE_SHIFT; | 870 | ga = memslot->base_gfn << PAGE_SHIFT; |
871 | ga_end = ga + (memslot->npages << PAGE_SHIFT); | 871 | ga_end = ga + (memslot->npages << PAGE_SHIFT); |