[lkml]   [1997]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: MSR driver
Followup to:  <>
By author: Andi Kleen <>
In newsgroup:
> >
> > 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.)

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

 \ /
  Last update: 2005-03-22 13:40    [W:0.076 / U:4.004 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site