From: Paul Mackerras Date: Mon, 12 Dec 2011 12:28:55 +0000 (+0000) Subject: KVM: PPC: Add an interface for pinning guest pages in Book3s HV guests X-Git-Tag: v3.4-rc1~59^2~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93e602490c1da83162a8b6ba86b4b48a7a0f0c9e;p=pandora-kernel.git 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 Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity --- Reading git-diff-tree failed