]> 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)
committerJean Guyader <jean.guyader@eu.citrix.com>
Mon, 13 Oct 2008 10:20:38 +0000 (11:20 +0100)
  - Add dm-ready product patch

xenstore.c

index 8281aa4492051f5f4147e4357fdaadc2a0ddadce..fe7782a1ce394ede1cb7ee063da9766574ef7822 100644 (file)
@@ -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);
+}