All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: x86's context switch ordering of operations
Date: Tue, 29 Apr 2008 16:37:44 +0100	[thread overview]
Message-ID: <48175CE8.76E4.0078.0@novell.com> (raw)
In-Reply-To: <C43CE81F.2012F%keir.fraser@eu.citrix.com>

>>> Keir Fraser <keir.fraser@eu.citrix.com> 29.04.08 15:58 >>>
>Um, good point, I'd forgotten exactly how the code fitted together. Anyhow,
>the reason you see ctxt_switch_{from,to} happening after set_current() is
>because context_switch() and __context_switch() can actually be decoupled.
>When switching to the idle vcpu we run context_switch() but we do not run
>__context_switch().

Okay, that could be easily dealt with by doing set_current() explicitly
in the switch-to-idle case, and moving it into __context_switch() in
the other cases.

Any word on the significance of doing write_ptbase() after calling
ctxt_switch_to()?

Jan

  reply	other threads:[~2008-04-29 15:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-29 12:39 x86's context switch ordering of operations Jan Beulich
2008-04-29 12:50 ` Keir Fraser
2008-04-29 13:39   ` Jan Beulich
2008-04-29 13:58     ` Keir Fraser
2008-04-29 15:37       ` Jan Beulich [this message]
2008-04-29 16:52         ` Keir Fraser
2008-04-29 17:03 ` Jeremy Fitzhardinge

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=48175CE8.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=keir.fraser@eu.citrix.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.