Skip to contentSkip to conversation

xenstored cmdline opts to tell it what port and grant ref to use to access dom0's xenstore page

PATCH In review Alex Zeffertt 1 participant 1 message Mar 23, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 11/24 xenstored cmdline opts to tell it what port and grant ref to use to access dom0's xenstore page

Adds three flags to xenstored for it to initialize dom0's connection from another domain.

TODO: This doesn't make too much sense anymore becuase we're not doing a local_dom_init for stubdoms anyway. It also makes the local_domid flag redundant.

---

tools/xenstore/xenstored_core.c +16 -0
diff -r e9bc9e4ab2fb tools/xenstore/xenstored_core.c
@@ -55,6 +55,10 @@
 #include "hashtable.h"
 
 extern int xce_handle; /* in xenstored_domain.c */
+
+unsigned int local_domid = 0;
+int dom0_grant_ref = -1;
+evtchn_port_t dom0_port = -1;
 
 static bool verbose = false;
 LIST_HEAD(connections);
@@ -1753,6 +1757,9 @@
 	{ "preserve-local", 0, NULL, 'L' },
 	{ "verbose", 0, NULL, 'V' },
 	{ "watch-nb", 1, NULL, 'W' },
+	{ "local-domid", 1, NULL, 'x' },
+	{ "dom0-grant-ref", 1, NULL, 'y' },
+	{ "dom0-port", 1, NULL, 'z' },
 	{ NULL, 0, NULL, 0 } };
 
 extern void dump_conn(struct connection *conn); 
@@ -1813,6 +1820,15 @@
 			break;
 		case 'W':
 			quota_nb_watch_per_domain = strtol(optarg, NULL, 10);
+			break;
+		case 'x':
+			local_domid = strtol(optarg, NULL, 10);
+			break;
+		case 'y':
+			dom0_grant_ref = strtol(optarg, NULL, 10);
+			break;
+		case 'z':
+			dom0_port = strtol(optarg, NULL, 10);
 			break;
 		}
 	}
tools/xenstore/xenstored_domain.c +61 -9

93 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel