public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: Andy Lutomirski <luto@amacapital.net>
Cc: "Fr馘駻ic Weisbecker" <fweisbec@gmail.com>, X86 <x86@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Denys Vlasenko" <dvlasenk@redhat.com>
Subject: Re: context tracking vs. syscall_trace_leave & do_notify_resume loop
Date: Fri, 01 May 2015 12:19:00 -0400	[thread overview]
Message-ID: <5543A774.5010501@redhat.com> (raw)
In-Reply-To: <CALCETrX4EfXPMWfMjZ20tmgm_tM1E69uwv4ewingVpsw+=TnjA@mail.gmail.com>

On 05/01/2015 12:16 PM, Andy Lutomirski wrote:
> On Fri, May 1, 2015 at 9:14 AM, Rik van Riel <riel@redhat.com> wrote:
>> On 05/01/2015 12:05 PM, Andy Lutomirski wrote:
>>> On Fri, May 1, 2015 at 9:00 AM, Rik van Riel <riel@redhat.com> wrote:
>>
>>>> I suspect we probably only need two possible function
>>>> calls at syscall exit time:
>>>>
>>>> 1) A function that is called with interrupts still
>>>>    enabled, testing flags that could be set again
>>>>    if something happens (eg. preemption) between
>>>>    when the function is called, and we return to
>>>>    user space.
>>>>
>>>> 2) A function that is called after the point of
>>>>    no return, with interrupts disabled, which
>>>>    does (mostly) small things that only happen
>>>>    once.

> C can have loops just as easily as assembly can :)  I still don't see
> why we need magic asm code to schedule and deliver signals.  We
> certainly need to have valid pt_regs to deliver signals, but that's
> easy and much cheaper than it used to be.

Oh, I never said it would all have to be in assembly :)

I would love to see the stuff in entry.S greatly simplified.

-- 
All rights reversed

      reply	other threads:[~2015-05-01 16:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-01  1:30 context tracking vs. syscall_trace_leave & do_notify_resume loop Rik van Riel
2015-05-01 15:55 ` Andy Lutomirski
2015-05-01 16:00   ` Rik van Riel
2015-05-01 16:05     ` Andy Lutomirski
2015-05-01 16:14       ` Rik van Riel
2015-05-01 16:16         ` Andy Lutomirski
2015-05-01 16:19           ` Rik van Riel [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=5543A774.5010501@redhat.com \
    --to=riel@redhat.com \
    --cc=dvlasenk@redhat.com \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /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