aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xlat.lst
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-01-28 13:47:24 +0000
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-01-28 13:47:24 +0000
commit14eb3b41d03f75b89928fad8f720f7d49598b0be (patch)
tree9ee446aae1f6ade9547d28a66f3b98bdea22993e /xen/include/xlat.lst
parent0057a949dea2d22b1d9be884a7bd9912aa7f03cc (diff)
downloadxen-14eb3b41d03f75b89928fad8f720f7d49598b0be.tar.gz
xen-14eb3b41d03f75b89928fad8f720f7d49598b0be.tar.bz2
xen-14eb3b41d03f75b89928fad8f720f7d49598b0be.zip
xen: reinstate previously unused XENMEM_remove_from_physmap hypercall
This patch reinstates the XENMEM_remove_from_physmap hypercall which was removed in 19041:ee62aaafff46 because it was not used. However, is now needed in order to support xenstored stub domains. The xenstored stub domain is not priviliged like dom0 and so cannot unilaterally map the xenbus page of other guests into it's address space. Therefore, before creating a domU the domain builder needs to seed its grant table with a grant ref allowing the xenstored stub domain to access the new domU's xenbus page. At present domU's do not start with their grant table mapped. Instead it gets mapped when the guest requests a grant table from the hypervisor. In order to seed the grant table, the domain builder first needs to map it into dom0 address space. But the hypercall to do this requires a gpfn (guest pfn), which is an mfn for PV guest, but a pfn for HVM guests. Therfore, in order to seed the grant table of an HVM guest, dom0 needs to *temporarily* map it into the guest's "physical" address space. Hence the need to reinstate the XENMEM_remove_from_physmap hypercall. Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com> Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xlat.lst')
-rw-r--r--xen/include/xlat.lst1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/xlat.lst b/xen/include/xlat.lst
index f6021550df..3d4f1e328f 100644
--- a/xen/include/xlat.lst
+++ b/xen/include/xlat.lst
@@ -60,6 +60,7 @@
! memory_map memory.h
! memory_reservation memory.h
! pod_target memory.h
+! remove_from_physmap memory.h
? physdev_eoi physdev.h
? physdev_get_free_pirq physdev.h
? physdev_irq physdev.h