lkml.org 
[lkml]   [1997]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: MSR driver
Date
Followup to:  <k2g1p0yn1p.fsf@zero.aec.at>
By author: Andi Kleen <ak@muc.de>
In newsgroup: linux.dev.kernel
> >
> > a) character device
> >
> > This is the currently implemented method.
> > It was criticized by Linus and I get the problem. I believe that
> > this way, it would be very easy to grant specific users access to
> > the MSR registers.
>
> Why was it criticized? IMHO it's the best solution because it gives
> all the flexibility of unix permissions for the access control.
> AFAIK OpenBSD does it the same way.
>

Only if you take SMP into account (this applies to all methods.) It's
no good if on an SMP machine you effectively end up setting MSR's on
any random processor, which may change without notice.

We may want to have a "cpu X only" system call (schedule only on a
specific processor) for things that use per-processor features, such
as RDTSC.)

-hpa
--
PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74
See http://www.zytor.com/~hpa/ for web page and full PGP public key
I am Bahá'í -- ask me about it or see http://www.bahai.org/
"To love another person is to see the face of God." -- Les Misérables

\
 
 \ /
  Last update: 2005-03-22 13:40    [from the cache]
©2003-2011 Jasper Spaans