All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kip Macy <kip.macy@gmail.com>
To: Avi Kivity <avi.kivity@qumranet.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Question re do_switch_stack()
Date: Thu, 9 Jun 2005 07:44:56 -0700	[thread overview]
Message-ID: <b1fa29170506090744e0cdd2a@mail.gmail.com> (raw)
In-Reply-To: <1118328113.15004.28.camel@blast.qumranet.com>

The stack_switch you're looking at is for setting the trap stack.

On 6/9/05, Avi Kivity <avi.kivity@qumranet.com> 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.
> 
> 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@lists.xensource.com
> http://lists.xensource.com/xen-devel
>

  reply	other threads:[~2005-06-09 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-09 14:41 Question re do_switch_stack() Avi Kivity
2005-06-09 14:44 ` Kip Macy [this message]
2005-06-09 15:22   ` Avi Kivity
2005-06-09 15:32     ` Keir Fraser
2005-06-09 15:51       ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b1fa29170506090744e0cdd2a@mail.gmail.com \
    --to=kip.macy@gmail.com \
    --cc=avi.kivity@qumranet.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.