mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/domain: Reposition config copying in domain_create()
This is cleanup for two pending series which will copy more data than just flags from config. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
9712753526
commit
1839011c7e
1 file changed
+3
-2
+3
-2
@@ -421,14 +421,15 @@ struct domain *domain_create(domid_t domid,
|
||||
if ( (d = alloc_domain_struct()) == NULL )
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
d->options = config ? config->flags : 0;
|
||||
|
||||
/* Sort out our idea of is_system_domain(). */
|
||||
d->domain_id = domid;
|
||||
|
||||
/* Debug sanity. */
|
||||
ASSERT(is_system_domain(d) ? config == NULL : config != NULL);
|
||||
|
||||
if ( config )
|
||||
d->options = config->flags;
|
||||
|
||||
/* Sort out our idea of is_control_domain(). */
|
||||
d->is_privileged = is_priv;
|
||||
|
||||
|
||||