From: Keir Fraser Subject: Re: x86's context switch ordering of operations Date: Tue, 29 Apr 2008 17:52:51 +0100 Message-ID: References: <48175CE8.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48175CE8.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 29/4/08 16:37, "Jan Beulich" 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