return *(const unsigned int *)key1 == *(const unsigned int *)key2;
}
-void domain_init(int evtfd)
+void domain_early_init(void)
{
- int rc;
-
/* Start with a random rather low domain count for the hashtable. */
domhash = create_hashtable(NULL, "domains", domhash_fn, domeq_fn, 0);
if (!domhash)
xengnttab_set_max_grants(*xgt_handle, DOMID_FIRST_RESERVED);
talloc_set_destructor(xgt_handle, close_xgt_handle);
+}
+
+void domain_init(int evtfd)
+{
+ int rc;
if (evtfd < 0)
xce_handle = xenevtchn_open(NULL, XENEVTCHN_NO_CLOEXEC);
{
struct domain *d;
- if (!xc_handle && domid == dom0_domid)
- return true;
-
d = find_domain_struct(domid);
return d && d->generation <= gen;
int do_reset_watches(const void *ctx, struct connection *conn,
struct buffered_data *in);
+void domain_early_init(void);
void domain_init(int evtfd);
void dom0_init(void);
void domain_deinit(void);