From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kip Macy Subject: Re: Question re do_switch_stack() Date: Thu, 9 Jun 2005 07:44:56 -0700 Message-ID: References: <1118328113.15004.28.camel@blast.qumranet.com> Reply-To: Kip Macy Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1118328113.15004.28.camel@blast.qumranet.com> Content-Disposition: inline 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org The stack_switch you're looking at is for setting the trap stack. On 6/9/05, Avi Kivity wrote: > looking at do_stack_switch() (x86-32), I see that the switch is effected > by moving the new stack pointer into current->arch.kernel_sp. however, > entry.S only looks at kernel_sp in create_bounce_frame, but only if > we're not returning into ring 1. >=20 > how then is the switch caused? obviously the call to do_stack_switch > came from ring 1. >=20 > confused, > Avi >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >