From: Hugh Dickins <hugh@veritas.com>
To: "Mika Penttilä" <mika.penttila@kolumbus.fi>
Cc: Andrew Morton <akpm@osdl.org>, Ingo Molnar <mingo@redhat.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 4G/4G preempt on vstack
Date: Sat, 30 Aug 2003 00:36:35 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.44.0308300034050.1197-100000@localhost.localdomain> (raw)
In-Reply-To: <3F4FCCC6.4020501@kolumbus.fi>
On Sat, 30 Aug 2003, Mika Penttila wrote:
> hmm. you make the window smaller, but can't the preempt happen even
> inside repeat_if_esp_changed, after xorl? Disabling interrupts seems the
> only solution.
Your conclusion may very well be right.
Certainly the preempt can happen anywhere there, and I was going
to argue that it doesn't matter. All we need is to be looking up
TI_real_stack(%ebp) at a time when %ebp is sure to be pointing at
our task's virtual stack. That real stack will be valid whatever
cpu we're on, but we need to be sure we were looking through the
right window at the moment when we looked it up.
But my error is to say "the preempt": there could be more than one.
Then you can imagine that cpu and %esp at the end are the same as
cpu and %esp at the beginning; but in between, when looking up
TI_real_stack(%ebp), it was actually on another cpu and %ebp was
the wrong pointer. Very unlikely, but possible.
I was trying to avoid pushfl, cli, popfl, being ignorant of how
much overhead they add (into what I'm sure Ingo would like to keep
as fast a path as possible). Perhaps there's still a neat way they
can be avoided, perhaps I'm just being silly to try to avoid them.
Sorry, I'm sleepy, perhaps someone else will fix this up now?
Hugh
prev parent reply other threads:[~2003-08-29 23:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-29 20:56 Hugh Dickins
2003-08-29 20:57 ` Ingo Molnar
2003-08-29 21:59 ` Mika Penttilä
2003-08-29 23:36 ` Hugh Dickins [this message]
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=Pine.LNX.4.44.0308300034050.1197-100000@localhost.localdomain \
--to=hugh@veritas.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.penttila@kolumbus.fi \
--cc=mingo@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®