WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [Patch] domain create optimization

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [Patch] domain create optimization
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Thu, 22 Apr 2010 14:11:59 +0200
Delivery-date: Thu, 22 Apr 2010 05:13:07 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=juergen.gross@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1271938417; x=1303474417; h=message-id:date:from:mime-version:to:subject; z=Message-ID:=20<4BD03D0F.7020300@xxxxxxxxxxxxxx>|Date:=20 Thu,=2022=20Apr=202010=2014:11:59=20+0200|From:=20Juergen =20Gross=20<juergen.gross@xxxxxxxxxxxxxx>|MIME-Version: =201.0|To:=20"xen-devel@xxxxxxxxxxxxxxxxxxx"=20<xen-devel @lists.xensource.com>|Subject:=20[Patch]=20domain=20creat e=20optimization; bh=J20UxX8/fL357swxua3ssTEkzr0TCWbmGgEpgKY+uDE=; b=IfE6igVuM/0YFDqkaxkSfpc9yXS+pFz9IKMbavu/KJzTiDfQamurSpFH 2GY7xbfuBLjK+TwkClGpgdNh+9RCFy+nUG2DfJ/MZsz1vOTiCwhx+z/sm PKP1aL0bbpyourcojmBuiWREEczwVu7ssl8bEEhKVyUk20fUDVbrERjoN +8bIK+MZ55jiE8TN5jGZrpktkJrlcQIKCsAGehZSWYYSNEoBpBEH2UraF iu08EfksD/hF8cVIq1WxwqSqlObUm;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:Subject:X-Enigmail-Version: Content-Type; b=wGN3aCNeqg7uhygRSENt06yRBpNkEQdwt9zVw5MQhwoKBNFwdcNSRcYt K+S3+qZjv7m1oclhY5YontaZCZMB54vBT/m0hm9oECdrKGuswbjQ7SWuE voIWsCRgWZr5MBZ2YviUuNqq3XFXGsYqhduBpTN1KmIvzcqjFRKZmL+Sh KnUr4v5WxiAYGOtDF/pZbyJ0FWMjdnruKCFvUv1YOECb+5Wz3ylderJOV O9FUdeK/FlTJqiy1Xn5hZD5/w1wAn;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Fujitsu Technology Solutions
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)
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 <=