From c2ee9c1fc840dd51e71405515147afc0790bf202 Mon Sep 17 00:00:00 2001 From: Jean Guyader Date: Mon, 13 Oct 2008 11:20:38 +0100 Subject: [PATCH] - Call the init of dom0_driver - Add dm-ready product patch --- xenstore.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/xenstore.c b/xenstore.c index 8281aa44..fe7782a1 100644 --- a/xenstore.c +++ b/xenstore.c @@ -1323,3 +1323,27 @@ int *xenstore_get_domids(int *len) tab[i] = strtol(e[i], NULL, 10); return tab; } + + +/* Advertise through xenstore that the device model is up and the + domain can be started. */ +void xenstore_dm_finished_startup(void) +{ + char *path; + char *buf = NULL; + + path = xs_get_domain_path(xsh, domid); + if (!path) { + fprintf(logfile, "xs_get_domain_path() failed.\n"); + goto out; + } + if (pasprintf(&buf, "%s/device-misc/dm-ready", path) == -1) { + fprintf(logfile, "pasprintf failed to get path.\n"); + goto out; + } + if (xs_write(xsh, XBT_NULL, buf, "1", 1) == 0) + fprintf(logfile, "xs_write() dm-ready failed\n"); + out: + free(buf); + free(path); +} -- 2.39.5