]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Add an interface for pinning guest pages in Book3s HV guests
authorPaul Mackerras <paulus@samba.org>
Mon, 12 Dec 2011 12:28:55 +0000 (12:28 +0000)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:36 +0000 (14:52 +0200)
commit7e50b26b445075e0f5bef43128b53117257c8469
tree7dd0407af03944cffcfdb7798d0ea6155156700e
parent8f2ff9281d0b48aaff540aa037b312693d7aade8
KVM: PPC: Add an interface for pinning guest pages in Book3s HV guests

This adds two new functions, kvmppc_pin_guest_page() and
kvmppc_unpin_guest_page(), and uses them to pin the guest pages where
the guest has registered areas of memory for the hypervisor to update,
(i.e. the per-cpu virtual processor areas, SLB shadow buffers and
dispatch trace logs) and then unpin them when they are no longer
required.

Although it is not strictly necessary to pin the pages at this point,
since all guest pages are already pinned, later commits in this series
will mean that guest pages aren't all pinned.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv.c