|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] xen/domain: Reposition config copying in domain_create()
commit 1839011c7eccd1b119d71a36b07ed914bfa9c5da
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Mon Jan 18 14:50:57 2021 +0000
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Mon Jan 18 16:23:03 2021 +0000
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@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/common/domain.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/xen/common/domain.c b/xen/common/domain.c
index d151be3f36..164c9d14e9 100644
--- a/xen/common/domain.c
+++ b/xen/common/domain.c
@@ -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;
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |