From: Keir Fraser Subject: Re: Question re do_switch_stack() Date: Thu, 9 Jun 2005 16:32:12 +0100 Message-ID: <7177ce6de4aff4b1792733a2ca50d49d@cl.cam.ac.uk> References: <1118328113.15004.28.camel@blast.qumranet.com> <1118330521.15004.38.camel@blast.qumranet.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1118330521.15004.38.camel@blast.qumranet.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: Avi Kivity Cc: Kip Macy , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 9 Jun 2005, at 16:22, Avi Kivity wrote: > the tss is not consulted on iretd as far as I can tell, and kernel_sp > is > only loaded in create_bounce_frame. what did I miss? > > thanks in advance. The actual stack switch occurs in do_switch() macro defined in include/asm-xen/asm-i386/system.h. do_stack_switch() changes the stack that Xen switches to when switching to ring 1 when previously the guest was executing in ring 3. -- Keir