Re:Intel Power Gadget
by simcop2387 on Saturday July 21, 2018 @10:55PM
(#17585052)
Even Linux requires this be done in kernel space, it's a requirement set by the architecture that the instructions that access them are run as part of the kernel. This is just like OSX, no different at all.
[ Parent
| on HN ]
In Linux root can open, read, and write /dev/msr.
Re:Intel Power Gadget
by simcop2387 on Monday July 23, 2018 @04:02AM
(#17591239)
I haven't seen a /dev/msr before, but there is /dev/cpu/*/msr [1] provided by a kernel module. So there is a generic interface for them, but it's still all happening in kernel space. It's also not loaded by default either because it can cause system panics and corruption.