From: Avi Kivity Subject: Re: Question re do_switch_stack() Date: Thu, 09 Jun 2005 18:51:57 +0300 Message-ID: <1118332318.15004.43.camel@blast.qumranet.com> References: <1118328113.15004.28.camel@blast.qumranet.com> <1118330521.15004.38.camel@blast.qumranet.com> <7177ce6de4aff4b1792733a2ca50d49d@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7177ce6de4aff4b1792733a2ca50d49d@cl.cam.ac.uk> 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: Kip Macy , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, 2005-06-09 at 16:32 +0100, Keir Fraser wrote: > 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. > switch_to(), I think you mean. > do_stack_switch() changes the stack that Xen switches to when switching > to ring 1 when previously the guest was executing in ring 3. > all clear now. thanks! Avi > -- Keir >