Skip to contentSkip to conversation

Access MSR functions in userspace?

DISCUSSION H. Peter Anvin 1 participant 1 message Feb 7, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 10 lines · Hasan Rashid

Maxim, HPA,

I loaded the module msr.o and when I try to use wrmsr or rdmsr from the msr
tools I get rdmsr: open: No such device. It seems like device doesn't register upon module load. I have created the devices on the system using mknod. Meaning /dev/cpu/msr is there and I changed the appropriate path in the msr.c(module) and wrmsr.c (utlity) file.

What would prompt this error message?

/dev/cpu/msr is bogus. It should be /dev/cpu/0/msr etc.

Sounds like your version of udev might be out of date, or you're using an old kernel which doesn't communicate /dev/cpu/* to udev properly.

Revert your hacks and, if you have to create the nodes manually, use the MAKEDEV script included with the msr-tools.

-hpa