]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
arch/domain: Clean up the idle domain remnants in arch_domain_create()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 18 Jul 2024 20:22:41 +0000 (21:22 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 31 Jul 2024 10:14:50 +0000 (11:14 +0100)
With arch_domain_create() no longer being called with the idle domain, drop
the last remaining logic.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain.c
xen/arch/x86/domain.c

index 7cfcefd279442904b2c5dbbf6742359bd595781d..3ba959f866338d2e7f7dc0e301cd79c10fbc4549 100644 (file)
@@ -706,12 +706,6 @@ int arch_domain_create(struct domain *d,
 
     BUILD_BUG_ON(GUEST_MAX_VCPUS < MAX_VIRT_CPUS);
 
-    /* Idle domains do not need this setup */
-    if ( is_idle_domain(d) )
-        return 0;
-
-    ASSERT(config != NULL);
-
 #ifdef CONFIG_IOREQ_SERVER
     ioreq_domain_init(d);
 #endif
index a6cb7a98ed1713c3f74066128b34ab4da42966c8..c71b9023cb1adec139a0fe2f508c661972f80591 100644 (file)
@@ -791,19 +791,6 @@ int arch_domain_create(struct domain *d,
 
     spin_lock_init(&d->arch.e820_lock);
 
-    /* Minimal initialisation for the idle domain. */
-    if ( unlikely(is_idle_domain(d)) )
-    {
-        return 0;
-    }
-
-    if ( !config )
-    {
-        /* Only IDLE is allowed with no config. */
-        ASSERT_UNREACHABLE();
-        return -EINVAL;
-    }
-
     if ( d->domain_id && cpu_has_amd_erratum(&boot_cpu_data, AMD_ERRATUM_121) )
     {
         if ( !opt_allow_unsafe )