xen: privcmd: support autotranslated physmap guests.
authorMukesh Rathor <mukesh.rathor@oracle.com>
Thu, 18 Oct 2012 00:11:21 +0000 (17:11 -0700)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 29 Nov 2012 12:57:52 +0000 (12:57 +0000)
commitd71f513985c22f1050295d1a7e4327cf9fb060da
tree3da00d6cad246972d2cfcd76a945b96efedcac80
parent9a032e393a8bc888a9b0c898cbdb9db2cee7b536
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