aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_dom.h
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-02-15 13:32:21 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-02-15 13:32:21 +0000
commitc967d12820716b3836a0ea3c1076fa20dd3314ee (patch)
tree722a432d38c46bfe3f6cad4af78e82b6d6f7b377 /tools/libxc/xc_dom.h
parent650ae1580c48498693513fa04df56a4b97bb5539 (diff)
downloadxen-c967d12820716b3836a0ea3c1076fa20dd3314ee.tar.gz
xen-c967d12820716b3836a0ea3c1076fa20dd3314ee.tar.bz2
xen-c967d12820716b3836a0ea3c1076fa20dd3314ee.zip
libxc: fixes for the ARM platform
Make xc_dom_feature_translated an arch-dependent function. alloc_magic_pages: save console and xenstore pfn's in xc_dom_image. alloc_magic_pages: set HVM_PARAM_CONSOLE_EVTCHN and HVM_PARAM_STORE_EVTCHN hvm_params using the event channels allocated by the toolstack. Call xc_dom_gnttab_hvm_seed instead of xc_dom_gnttab_seed in xc_dom_gnttab_init for autotranslated guests. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxc/xc_dom.h')
-rw-r--r--tools/libxc/xc_dom.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/libxc/xc_dom.h b/tools/libxc/xc_dom.h
index eccc516c2c..7583d8c5fd 100644
--- a/tools/libxc/xc_dom.h
+++ b/tools/libxc/xc_dom.h
@@ -250,6 +250,7 @@ int xc_dom_gnttab_seed(xc_interface *xch, domid_t domid,
xen_pfn_t xenstore_gmfn,
domid_t console_domid,
domid_t xenstore_domid);
+int xc_dom_feature_translated(struct xc_dom_image *dom);
/* --- debugging bits ---------------------------------------------- */
@@ -312,11 +313,6 @@ static inline void *xc_dom_vaddr_to_ptr(struct xc_dom_image *dom,
return (ptr ? (ptr + offset) : NULL);
}
-static inline int xc_dom_feature_translated(struct xc_dom_image *dom)
-{
- return elf_xen_feature_get(XENFEAT_auto_translated_physmap, dom->f_active);
-}
-
static inline xen_pfn_t xc_dom_p2m_host(struct xc_dom_image *dom, xen_pfn_t pfn)
{
if (dom->shadow_enabled)