|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [Patch] 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
--
Juergen Gross Principal Developer Operating Systems
TSP ES&S SWE OS6 Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions e-mail: juergen.gross@xxxxxxxxxxxxxx
Domagkstr. 28 Internet: ts.fujitsu.com
D-80807 Muenchen Company details: ts.fujitsu.com/imprint.html
Signed-off by: juergen.gross@xxxxxxxxxxxxxx
diff -r b0562b298d73 xen/common/cpupool.c
--- a/xen/common/cpupool.c Wed Apr 21 12:51:53 2010 +0100
+++ b/xen/common/cpupool.c Thu Apr 22 13:54:11 2010 +0200
@@ -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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [Patch] domain create optimization,
Juergen Gross <=
|
|
|
|
|