From: Zachary Amsden Subject: Re: [RFC PATCH 17/35] Segment register changes for Xen Date: Wed, 22 Mar 2006 16:16:54 -0800 Message-ID: <4421E8F6.10507@vmware.com> References: <20060322063040.960068000@sorel.sous-sol.org> <20060322063752.889921000@sorel.sous-sol.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060322063752.889921000@sorel.sous-sol.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Chris Wright Cc: virtualization@lists.osdl.org, Christian Limpach , xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org, Ian Pratt List-Id: xen-devel@lists.xenproject.org Chris Wright wrote: > 1. We clear FS/GS before changing TLS entries and switching LDT, as > otherwise the hypervisor will fail to restore thread-local values on > return to the guest kernel and we take a slow exception path. > This should not be needed. You should clear FS/GS that match updated descriptors in your descriptor validation code instead. And you will get better performance for both native and the hypervisor cases.