From: Keir Fraser <keir@xensource.com>
To: Hollis Blanchard <hollisb@us.ibm.com>, Keir Fraser <keir@xensource.com>
Cc: xen-devel <xen-devel@lists.xensource.com>,
xen-ppc-devel <xen-ppc-devel@lists.xensource.com>
Subject: Re: schedule() vs softirqs
Date: Fri, 15 Dec 2006 20:00:53 +0000 [thread overview]
Message-ID: <C1A8AF75.62C2%keir@xensource.com> (raw)
In-Reply-To: <1166209782.18449.40.camel@basalt>
On 15/12/06 19:09, "Hollis Blanchard" <hollisb@us.ibm.com> wrote:
> Ah OK, I see now how x86 is doing that. I don't think that code flow
> really makes sense: why would you jump out of do_softirq() into assembly
> just to call do_softirq() again?
Well, that's the way it works out on x86. It is a bit odd, but it works and
is unlikely to affect performance. I think returning from schedule() would
have its own problems (e.g., context switch from idle domain to guest would
return to the idle loop, which we'd need explicit code to bail from, etc).
> Also, that doesn't solve the lazy register saving problem.
I assume this is a PPC-specific issue?
> However, I think I see how we can implement our desired context_switch()
> scheme in arch-specific code. The context_switch() call in schedule()
> will return, so please don't add a BUG() after that. :)
We already support this mode of operation for IA64 which always returns from
schedule().
-- Keir
next prev parent reply other threads:[~2006-12-15 20:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-15 17:27 schedule() vs softirqs Hollis Blanchard
2006-12-15 17:36 ` Keir Fraser
2006-12-15 19:09 ` [Xen-devel] " Hollis Blanchard
2006-12-15 20:00 ` Keir Fraser [this message]
2006-12-15 20:41 ` Hollis Blanchard
2006-12-15 21:39 ` Keir Fraser
2006-12-15 23:51 ` Hollis Blanchard
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=C1A8AF75.62C2%keir@xensource.com \
--to=keir@xensource.com \
--cc=hollisb@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen-ppc-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.