]> xenbits.xensource.com Git - xenclient/ioemu.git/commitdiff
- Call the init of dom0_driver
authorJean Guyader <jean.guyader@eu.citrix.com>
Mon, 13 Oct 2008 10:20:38 +0000 (11:20 +0100)
committerVincent Hanquez <vincent@snarc.org>
Fri, 31 Oct 2008 12:10:55 +0000 (12:10 +0000)
  - Add dm-ready product patch

xenstore.c

index 9b7e59eec671c01778fdc3eeccb80243a77bc118..fd41b87adeeb41050fa11247ce6116e9517d264a 100644 (file)
@@ -1422,3 +1422,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);
+}