From: Keir Fraser Subject: Re: context switch Date: Tue, 28 Mar 2006 20:35:59 +0100 Message-ID: <094de57bd0b22d011e9ecef9b84677a8@cl.cam.ac.uk> References: <44284B8E.E57C.0030.0@novell.com> <44291E76.E57C.0030.0@novell.com> <44292D32.E57C.0030.0@novell.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Ky Srinivasan , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 28 Mar 2006, at 18:40, Keir Fraser wrote: > Why is it expensive? The updates to zero only happen if the previous > selector value was non-zero, which is usually not the case for 64-bit > apps. > > Things should work okay even without the zeroing, by the way. It just > avoids an unnecessary failsafe callback into the guest kernel. I fixed > the failsafe handler for x86/64 earlier today. We should probably just rely on the failsafe_handler actually (assuming it now works :-) ). That 'slow path' will be taken so infrequently it's not worth having a special prepare_arch_switch() for Xen. It's really a hangover from the initial port from i386. -- Keir