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] [Patch] continue_hypercall_on_cpu rework using tasklets

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [Patch] continue_hypercall_on_cpu rework using tasklets
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Wed, 14 Apr 2010 08:58:26 +0200
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 14 Apr 2010 00:00:06 -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=1271228309; x=1302764309; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; z=Message-ID:=20<4BC56792.2000605@xxxxxxxxxxxxxx>|Date:=20 Wed,=2014=20Apr=202010=2008:58:26=20+0200|From:=20Juergen =20Gross=20<juergen.gross@xxxxxxxxxxxxxx>|MIME-Version: =201.0|To:=20Keir=20Fraser=20<keir.fraser@xxxxxxxxxxxxx> |CC:=20"xen-devel@xxxxxxxxxxxxxxxxxxx"=20<xen-devel@lists .xensource.com>|Subject:=20Re:=20[Xen-devel]=20[Patch]=20 continue_hypercall_on_cpu=20rework=20using=09tasklets |References:=20<C7EB2370.1136B%keir.fraser@xxxxxxxxxxxxx> |In-Reply-To:=20<C7EB2370.1136B%keir.fraser@xxxxxxxxxxxxx >|Content-Transfer-Encoding:=207bit; bh=OuISfB48PrMNuOjC2XAiLHX8aIDTM4qXC09z/AjzXnk=; b=IslmnF4HimUBJhNmV0oGhqyENIMTyJG6hcr1rt1aJFDY2KTEcle0JOBj sagSfurnulFKKxIDaEdH22ixvvwJCVBkup6HEFGiZS3RU1d/HqglgEVSJ dr1F8ALVJCXjlEuey73Zrcu6HkyGrVCkOG90TtKbx9SCqP3jpdLw+s8Ae WNO9bdrZJ6M2lFaqEddIPAgc3MsEoE8OLcKvjxmgQL0RZRGB4tOm06cKT MKFIC0HKHNY8p/8H4j2EbLSpzEQbV;
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=p5Of6B6nlMLqEtyzPfTTPC3CePetCnzhZ4YAKd5Ykj39F3gInaQQUPq5 kfRKUnbrKRId3/mUBJka/jssQxMjkgipSVAIFA6p/E6VctVl3S0YniIzD sVCFDrEFsJgvjqCohQ7PngEvQGUuuzudwlC7k2y2D0yzvTr3mXITWOLEt W/FL7kp+EIK/fCLYdJhECgF51KTZP73UkpoBbS3+IUyjlI6yWRzCdkxCY crOwgi1/mPyNK1W9/dbZpFheOWXdo;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C7EB2370.1136B%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: <C7EB2370.1136B%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707)
Keir Fraser wrote:
> On 14/04/2010 05:26, "Juergen Gross" <juergen.gross@xxxxxxxxxxxxxx> wrote:
> 
>>> Why do you change the interface of continue_hypercall_on_cpu()? What's a
>>> 'hdl' anyway?
>> I need a way to find the migrate_info structure in case of nested calls of
>> continue_hypercall_on_cpu(). Originally this was done by storing it in the
>> vcpu structure, but this can't be done any more using tasklets. In my first
>> attempt I saved it in the per-cpu area, but this approach isn't working if
>> continue_hypercall_on_cpu() is called concurrently. So the cleanest way is
>> to pass it via a parameter.
> 
> The per-cpu area method should work fine, since Xen is non-preemptive? I
> don't think the concurrency you are concerned about can happen.

The tasklet knows only on which cpu it is running, so the data has to be
stored on the target cpu. And one pcpu can be the target of concurrent calls
from different calling cpus...


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

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

<Prev in Thread] Current Thread [Next in Thread>