xenstored cmdline opts to tell it what port and grant ref to use to access dom0's xenstore page
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.
Signed-off-by Diego Ongaro <[email protected]>
Signed-off-by Alex Zeffertt <[email protected]>
---
tools/xenstore/xenstored_core.c +16 -0
@@ -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