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

Re: [Xen-devel] Cpu pools discussion

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Cpu pools discussion
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Wed, 29 Jul 2009 14:33:14 +0200
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, George Dunlap <dunlapg@xxxxxxxxx>, Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 29 Jul 2009 05:33:39 -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=1248870887; x=1280406887; h=from:sender:reply-to:subject:date:message-id:to:cc: mime-version:content-transfer-encoding:content-id: content-description:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-message-id:in-reply-to: references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; z=From:=20Juergen=20Gross=20<juergen.gross@xxxxxxxxxxxxxx> |Subject:=20Re:=20[Xen-devel]=20Cpu=20pools=20discussion |Date:=20Wed,=2029=20Jul=202009=2014:33:14=20+0200 |Message-ID:=20<4A70418A.5000302@xxxxxxxxxxxxxx>|To:=20Ke ir=20Fraser=20<keir.fraser@xxxxxxxxxxxxx>|CC:=20Tim=20Dee gan=20<Tim.Deegan@xxxxxxxxxxxxx>,=20=0D=0A=20George=20Dun lap=20<dunlapg@xxxxxxxxx>,=0D=0A=20Zhigang=20Wang=20<zhig ang.x.wang@xxxxxxxxxx>,=20=0D=0A=20"xen-devel@xxxxxxxxxxx urce.com"=20<xen-devel@xxxxxxxxxxxxxxxxxxx>|MIME-Version: =201.0|Content-Transfer-Encoding:=207bit|In-Reply-To:=20< C695FEF0.10E09%keir.fraser@xxxxxxxxxxxxx>|References:=20< C695FEF0.10E09%keir.fraser@xxxxxxxxxxxxx>; bh=GGt0m5kq+yxtgU9EuV3XYDwQkeqRm99LvIVHLbRUScs=; b=E98NXTrVJN4yYMk4dLvz8wd+q8GgUTaakHpGzkNOc450WAtgNs6HE4Xy vwxZwXPSiTty3B1s4+fNM8bmV/va97+6rV9izoBfdoZQ5+6bhQpLsjYbp DyNNdToFPsB39mvXR6TZ7fVSjvKFkIyP0rziB5HQeDW3HCvw3GY1XgDAC fk8GKvHxTgkFiySwaGggtaQnFNVZJ+EdSFQ/5BUdZNMxDV/n4R7+QOLdn uvEcJYoVxDuzuenCqBXFzlbmATnqk;
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:CC:Subject:References: In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=HKOOeYzzmfYWcyAedEre2iz0IrX5l4cB8XwcXHta6lpbg7FTTqBPJlQB FT54HqwDHUzwPOFT/fXkbxuPnGy61PKGZdwmTx+zMYy+gMKI8e0ehm456 yDf0RYmAavUa7jsfrDMtR+oek522KFZL5PthQJHZ4RsKwbSYdW8eQPZu2 6nibKR1L3BcXwjyWxpLoWqv9ICJmPhaNs2OaKDUtIDQLzfI1ay8Mp1ko+ RRWkTr2ZH06Rw8f4iC4pR6h/cZ2dK;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C695FEF0.10E09%keir.fraser@xxxxxxxxxxxxx>
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
References: <C695FEF0.10E09%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707)
Keir Fraser wrote:
> On 29/07/2009 12:06, "Juergen Gross" <juergen.gross@xxxxxxxxxxxxxx> wrote:
> 
>> Would you feel better if I'd try to eliminate the reason for cpupool_borrow?
>> This function is needed only for continue_hypercall_on_cpu outside of the
>> current pool. I think it should be possible to replace those by
>> on_selected_cpus with less impact on the whole system.
> 
> Some of the stuff in the continuation handlers cannot be executed in irq
> context. 'Fixing' that would make many of the users ugly and less
> maintainable, so getting borrow/return right is the better answer I think.

The alternative would be a tasklet set up in irq.
And we are speaking of 3 users.
I could try a patch and then we could compare the two solutions. What do you
think?


Juergen

-- 
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 636 47950
Fujitsu Technolgy Solutions               e-mail: juergen.gross@xxxxxxxxxxxxxx
Otto-Hahn-Ring 6                        Internet: ts.fujitsu.com
D-81739 Muenchen                 Company details: ts.fujitsu.com/imprint.html

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel