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] x86's context switch ordering of operations

To: Jan Beulich <jbeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] x86's context switch ordering of operations
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 29 Apr 2008 17:52:51 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 29 Apr 2008 09:53:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <48175CE8.76E4.0078.0@xxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciqGXX1tFP0FhYMEd2kwQAWy6hiGQ==
Thread-topic: [Xen-devel] x86's context switch ordering of operations
User-agent: Microsoft-Entourage/11.4.0.080122
On 29/4/08 16:37, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:

> Okay, that could be easily dealt with by doing set_current() explicitly
> in the switch-to-idle case, and moving it into __context_switch() in
> the other cases.

It wouldn't really help you. If you switch to from VCPU A to idle and then
to VCPU B, you would still end up calling ctxt_switch_from(A) when
current==idle.

> Any word on the significance of doing write_ptbase() after calling
> ctxt_switch_to()?

It probably could be done earlier.

 -- Keir



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