diff options
author | Alex Zeffertt <alex.zeffertt@eu.citrix.com> | 2012-02-09 18:33:30 +0000 |
---|---|---|
committer | Alex Zeffertt <alex.zeffertt@eu.citrix.com> | 2012-02-09 18:33:30 +0000 |
commit | 6a2de353a969bdcb448ea977eca39401be312051 (patch) | |
tree | 34a84e2f65370b5eb1d7a44b9de51195c733e398 /tools/libxc/xc_dom_compat_linux.c | |
parent | 9b4964de7c6fa69a28688685bc9531f9408cf58b (diff) | |
download | xen-6a2de353a969bdcb448ea977eca39401be312051.tar.gz xen-6a2de353a969bdcb448ea977eca39401be312051.tar.bz2 xen-6a2de353a969bdcb448ea977eca39401be312051.zip |
lib{xc,xl}: Seed grant tables with xenstore and console grants
This patch claims one reserved grant entry for the console and another
for the xenstore. It modifies the builder to fill in the grant table
entries for the console and the xenstore.
Previous versions of this patch have been sent to xen-devel. See
http://lists.xensource.com/archives/html/xen-devel/2008-07/msg00610.html
http://lists.xensource.com/archives/html/xen-devel/2009-03/msg01491.html
Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
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>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_dom_compat_linux.c')
-rw-r--r-- | tools/libxc/xc_dom_compat_linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxc/xc_dom_compat_linux.c b/tools/libxc/xc_dom_compat_linux.c index 0e78842ef7..2183a3be23 100644 --- a/tools/libxc/xc_dom_compat_linux.c +++ b/tools/libxc/xc_dom_compat_linux.c @@ -62,6 +62,8 @@ static int xc_linux_build_internal(struct xc_dom_image *dom, goto out; if ( (rc = xc_dom_boot_image(dom)) != 0 ) goto out; + if ( (rc = xc_dom_gnttab_init(dom)) != 0) + goto out; *console_mfn = xc_dom_p2m_host(dom, dom->console_pfn); *store_mfn = xc_dom_p2m_host(dom, dom->xenstore_pfn); |