* [Patch] domain create optimization
@ 2010-04-22 12:11 Juergen Gross
0 siblings, 0 replies; only message in thread
From: Juergen Gross @ 2010-04-22 12:11 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
[-- Attachment #1: Type: text/plain, Size: 492 bytes --]
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@ts.fujitsu.com
Domagkstr. 28 Internet: ts.fujitsu.com
D-80807 Muenchen Company details: ts.fujitsu.com/imprint.html
[-- Attachment #2: dom-move.patch --]
[-- Type: text/x-patch, Size: 597 bytes --]
Signed-off by: juergen.gross@ts.fujitsu.com
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;
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-22 12:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-22 12:11 [Patch] domain create optimization Juergen Gross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.