diff options
author | Xiao Guangrong <xiaoguangrong.eric@gmail.com> | 2011-11-24 19:04:35 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-27 11:17:39 +0200 |
commit | 28a37544fb0223eb9805d2567b88f7360edec52a (patch) | |
tree | 83afb64f8448303f9486eb6c87980695611275ab /arch/powerpc | |
parent | be6ba0f0962a39091c52eb9167ddea201fe80716 (diff) | |
download | op-kernel-dev-28a37544fb0223eb9805d2567b88f7360edec52a.zip op-kernel-dev-28a37544fb0223eb9805d2567b88f7360edec52a.tar.gz |
KVM: introduce id_to_memslot function
Introduce id_to_memslot to get memslot by slot id
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc')
-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 a459479..e41ac6f 100644 --- a/arch/powerpc/kvm/book3s.c +++ b/arch/powerpc/kvm/book3s.c @@ -498,7 +498,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, /* If nothing is dirty, don't bother messing with page tables. */ if (is_dirty) { - memslot = &kvm->memslots->memslots[log->slot]; + memslot = id_to_memslot(kvm->memslots, log->slot); ga = memslot->base_gfn << PAGE_SHIFT; ga_end = ga + (memslot->npages << PAGE_SHIFT); |