@@ -536,6 +536,7 @@ void lu_read_state(void)
head = (void *)head + sizeof(*head) + head->length) {
switch (head->type) {
case XS_STATE_TYPE_GLOBAL:
+ read_state_global(ctx, head + 1);
break;
case XS_STATE_TYPE_CONN:
break;
@@ -2505,6 +2505,15 @@ const char *dump_state_nodes(FILE *fp, const void *ctx)
return dump_state_node_tree(fp, path);
}
+void read_state_global(const void *ctx, const void *state)
+{
+ const struct xs_state_global *glb = state;
+
+ sock = glb->socket_fd;
+
+ domain_init(glb->evtchn_fd);
+}
+
/*
* Local variables:
* mode: C
@@ -265,6 +265,8 @@ const char *dump_state_node_perms(FILE *fp, struct xs_state_node *sn,
const struct xs_permissions *perms,
unsigned int n_perms);
+void read_state_global(const void *ctx, const void *state);
+
#endif /* _XENSTORED_CORE_H */
/*