rdmsr from userspace

Kostik Belousov kostikbel at gmail.com
Sat May 17 10:13:09 UTC 2008


On Sat, May 17, 2008 at 11:13:52AM +0300, Andriy Gapon wrote:
> 
> It seems that rdmsr instruction can be executed only at the highest 
> privilege level and thus is not permitted from userland. Maybe we should 
> provide something like Linux /dev/cpu/msr?
> I don't like interface of that device, I think that ioctl approach would 
> be preferable in this case.
> Something like create /dev/cpuN and allow some ioctls on it: 
> ioctl(cpu_fd, CPU_RDMSR, arg).
> What do you think?

I believe ports/sysutils/devcpu is what you need. In fact, I think this
ought to be committed to the base. I do not know why Stas did not asked
for this, at least at public.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080517/6bdb202b/attachment.pgp


More information about the freebsd-hackers mailing list