As soon as the the domain is in the domlist, it can be queried via various
means, ahead of being fully constructed. Ensure it has the toolstack-given
UUID prior to becoming visible.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
*/
ASSERT(config);
+ memcpy(d->handle, config->handle, sizeof(d->handle));
+
#ifdef CONFIG_HAS_PIRQ
if ( !is_hardware_domain(d) )
d->nr_pirqs = nr_static_irqs + extra_domU_irqs;
domlist_insert(d);
domain_changed_state(d);
- memcpy(d->handle, config->handle, sizeof(d->handle));
return d;