[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1001300955570.4206@localhost.localdomain>
Date: Sat, 30 Jan 2010 09:59:28 -0800 (PST)
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Steven Rostedt <rostedt@...dmis.org>
cc: Ingo Molnar <mingo@...e.hu>,
Ananth N Mavinakayanahalli <ananth@...ibm.com>,
Jim Keniston <jkenisto@...ibm.com>,
Stephen Rothwell <sfr@...b.auug.org.au>,
Kyle Moffett <kyle@...fetthome.net>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Fr??d??ric Weisbecker <fweisbec@...il.com>,
Oleg Nesterov <oleg@...hat.com>,
LKML <linux-kernel@...r.kernel.org>,
Tom Tromey <tromey@...hat.com>,
"Frank Ch. Eigler" <fche@...hat.com>, linux-next@...r.kernel.org,
"H. Peter Anvin" <hpa@...or.com>, utrace-devel@...hat.com,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: linux-next: add utrace tree
On Sat, 30 Jan 2010, Steven Rostedt wrote:
>
> The kernel is limited to what instructions it can perform, no floating
> point for example (of course there are some exceptions).
Actually, the reason the kernel is limited to not performing floating
point instructions is that teh kernel doesn't own the floating point
register set - it's too big to save/restore, so the kernel leaves it
alone.
But for emulating an instruction from user space, it would be perfectly
fine to do an FP instruction in kernel space, since we're explicitly doing
it on behalf of user space, and with user space owning it.
Of course, that would require that we _only_ touch the registers that user
space wants us to touch, which is likely impossible in practice for
anything but an execute-out-of-line model.
> But generally, the instructions in the kernel should be easier to
> emulate than in userspace.
Yeah, we control the kernel instructions better, and we know what the
environment is. For example, we never have to worry about vm86 mode or
segments when we fix up kernel instructions, but user space can do
anything, of course.
Linus
--
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