[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090310170716.GC22897@elte.hu>
Date: Tue, 10 Mar 2009 18:07:16 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Alan Stern <stern@...land.harvard.edu>
Cc: prasad@...ux.vnet.ibm.com,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Roland McGrath <roland@...hat.com>
Subject: Re: [patch 06/11] Use virtual debug registers in process/thread
handling code
* Alan Stern <stern@...land.harvard.edu> wrote:
> > Speaking of switch_to_thread_hw_breakpoint(), i dont like
> > that function at all:
> >
> > - why does it have to do a list of debug registers?
>
> I'm not sure I understand the point of this question. Are you
> asking why the hw_breakpoint structures are stored on a list?
> Because there can be an arbitrarily large number of them.
But that does not make much sense. There's just 4 hardware
registers. There's no sane way to overcommit them hence we
_should not_.
> > - why does it worry about IPIs arriving when context-switches on
> > x86 are always done with interrupts disabled?
>
> The routine gets invoked at times other than during a context
> switch. However you may be right that these times are all
> mutually exclusive. If so then a good deal of complication
> can be removed.
Yes.
> > - also, what do the ->installed() and ->uninstalled() callbacks
> > do - nothing uses it!
>
> What do you mean? They do what any callback does. And of
> course nothing uses them -- the code hasn't been merged yet!
No need to get testy - i'm the maintainer and you are trying to
get stuff into two subsystems i maintain. I ask such questions
when i see something added that has no immediate purpose.
If a later patch needs a particular facility then submit it
together with that use. It's not that hard to add callbacks -
but right now it just distracts from the immediate purpose of
these patches.
And please dont try to get stuff merged if you are not willing
to answer simple questions like that in a constructive way.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists