]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: privcmd: support autotranslated physmap guests.
authorMukesh Rathor <mukesh.rathor@oracle.com>
Thu, 18 Oct 2012 00:11:21 +0000 (17:11 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 5 Dec 2012 17:34:07 +0000 (12:34 -0500)
commit5dfb0d5a761f90f314b12c57c34d8aadd7821da9
tree9429323af3c9d17f69bb065201a786d012f7bb04
parentdc5ffa7110f206de553b0e1203a96dd7a8f3e7cc
xen: privcmd: support autotranslated physmap guests.

PVH and ARM only support the batch interface. To map a foreign page to
a process, the PFN must be allocated and the autotranslated path uses
ballooning for that purpose.

The returned PFN is then mapped to the foreign page.
xen_unmap_domain_mfn_range() is introduced to unmap these pages via the
privcmd close call.

Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
[v1: Fix up privcmd_close]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[v2: used for ARM too]
drivers/xen/privcmd.c