From: Keir Fraser Subject: Re: Task Switching and Xen-SVM Date: Fri, 27 Oct 2006 09:59:07 +0100 Message-ID: References: <907625E08839C4409CE5768403633E0B018E1686@sefsexmb1.amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <907625E08839C4409CE5768403633E0B018E1686@sefsexmb1.amd.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: "Petersson, Mats" , Vivek Mohan , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 27/10/06 9:59 am, "Petersson, Mats" wrote: > AMD and Intel are doing the same thing here. > > Do you actually know of any (32-bit) OS that uses task switching? In my > experience, it's horribly slow (because it generally saves/restores more > of the context than is necessary). Of course, in 64-bit mode it's not > even allowed, all task-management features have been removed... I'm > saying 32-bit OS, since there's probably some 16-bit OS's out there that > do use task-switching, but those OS's are not able to run on current Xen > anyways, since Xen in it's current form is very poor at supporting > segments with base != 0 in protected mode. So far I've only seen a few > rare reports of anyone actually wishing to run a 16-bit OS... It's primarily used to obtain a fresh context when things have gobe very bad (so, for example, double-fault and NMI exceptions often specify a task gate in the IDT). -- Keir