aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstored_minios.c
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-02-09 18:33:35 +0000
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2012-02-09 18:33:35 +0000
commit7e0fd117e73fde58fe1ddb2fd4bd56108d2918a1 (patch)
treef81fbd7c25b616edc281c84ad6368e493a9d24f5 /tools/xenstore/xenstored_minios.c
parentf5f38f9f51d3dcf214d1035f8c23b2c2004243eb (diff)
downloadxen-7e0fd117e73fde58fe1ddb2fd4bd56108d2918a1.tar.gz
xen-7e0fd117e73fde58fe1ddb2fd4bd56108d2918a1.tar.bz2
xen-7e0fd117e73fde58fe1ddb2fd4bd56108d2918a1.zip
xenstored: add --event parameter for bootstrapping
When xenstored is run in a minios domain, it needs a bootstrap connection to dom0 so that additional domain introduce messages can be sent to it. 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/xenstore/xenstored_minios.c')
-rw-r--r--tools/xenstore/xenstored_minios.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/xenstore/xenstored_minios.c b/tools/xenstore/xenstored_minios.c
index c8700baa58..1c6f794d39 100644
--- a/tools/xenstore/xenstored_minios.c
+++ b/tools/xenstore/xenstored_minios.c
@@ -46,15 +46,17 @@ void xenbus_notify_running(void)
evtchn_port_t xenbus_evtchn(void)
{
- return -1;
+ return dom0_event;
}
void *xenbus_map(void)
{
- return NULL;
+ return xc_gnttab_map_grant_ref(*xcg_handle, 0,
+ GNTTAB_RESERVED_XENSTORE, PROT_READ|PROT_WRITE);
}
void unmap_xenbus(void *interface)
{
+ xc_gnttab_munmap(*xcg_handle, interface, 1);
}