Skip to contentSkip to conversation

domain create optimization

PATCH New Juergen Gross 1 participant 1 message Apr 22, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 domain create optimization

Hi,

attached patch optimizes the creation of a domain in cpupool Pool-0 by not moving it from Pool-0 to Pool-0 :-)

Juergen

Signature · 5 lines
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: [email protected]
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

Signed-off by: [email protected]

xen/common/cpupool.c +6 -0
diff -r b0562b298d73 xen/common/cpupool.c
@@ -520,6 +520,12 @@ addcpu_out:
             rcu_unlock_domain(d);
             break;
         }
+        if ( op->cpupool_id == d->cpupool->cpupool_id )
+        {
+            ret = 0;
+            rcu_unlock_domain(d);
+            break;
+        }
         printk(XENLOG_DEBUG "cpupool move_domain(dom=%d)->pool=%d\n",
             d->domain_id, op->cpupool_id);
         ret = -ENOENT;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel