WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Question re do_switch_stack()

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Question re do_switch_stack()
From: Avi Kivity <avi.kivity@xxxxxxxxxxxx>
Date: Thu, 09 Jun 2005 17:41:53 +0300
Delivery-date: Thu, 09 Jun 2005 14:41:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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.

how then is the switch caused? obviously the call to do_stack_switch
came from ring 1.

confused,
Avi

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>