public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: Fabiano Ramos <ramos_fabiano@yahoo.com.br>
Cc: linux-kernel@vger.kernel.org
Subject: Re: task switching at Page Faults
Date: Mon, 19 Apr 2004 23:52:48 +0200	[thread overview]
Message-ID: <m3zn97tz2n.fsf@averell.firstfloor.org> (raw)
In-Reply-To: <1MNpu-7QI-35@gated-at.bofh.it> (Fabiano Ramos's message of "Mon, 19 Apr 2004 22:20:16 +0200")

Fabiano Ramos <ramos_fabiano@yahoo.com.br> writes:
> kernel", about 2.4, and the authors: 
>     1)assure that there is no process switch during
> the execution of an eception handler (aka syscall).
> they emphasize it.

They're wrong. First the system call or exception can
block and then when kernel code returns to user space
it always checks if the time slice hasn't expired.

>     2) say that the execption handler may not generate
> exceptions, except for page faults.

That's also incorrect. e.g. it can generate GPFs
(e.g. when trying to load a segment register supplied
by the user and it is not correct)
and a few other exceptions in extreme cases. Usually
these exceptions are handled without sleeping though.

-Andi


       reply	other threads:[~2004-04-19 21:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1MN62-7wz-5@gated-at.bofh.it>
     [not found] ` <1MNpu-7QI-35@gated-at.bofh.it>
2004-04-19 21:52   ` Andi Kleen [this message]
2004-04-19 18:32 task switching at Page Faults Fabiano Ramos
2004-04-19 19:49 ` Mikulas Patocka
2004-04-19 20:12   ` Fabiano Ramos
2004-04-19 23:07     ` Mikulas Patocka
2004-04-20  1:32 ` Richard B. Johnson
2004-04-20  8:16 ` Helge Hafting

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=m3zn97tz2n.fsf@averell.firstfloor.org \
    --to=ak@muc.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ramos_fabiano@yahoo.com.br \
    /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