From: "H. Peter Anvin" <hpa@zytor.com>
To: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: hasan@digitalpath.net, linux-kernel@vger.kernel.org
Subject: Re: Access MSR functions in userspace?
Date: Tue, 05 Feb 2008 21:59:20 -0800 [thread overview]
Message-ID: <47A94CB8.3020303@zytor.com> (raw)
In-Reply-To: <200802060600.35498.maximlevitsky@gmail.com>
Maxim Levitsky wrote:
> On Wednesday, 6 February 2008 05:29:47 Hasan Rashid wrote:
>> Is there a way to use RDMSR and WRMSR in userspace? I only need to write
>> to one register, writing a module with a userspace piece to handle that
>> seems like an over kill.
>>
>> TIA!
>
>
> Fortunately linux have /dev/cpu/*/msr
> Take look at $LINUX_SOURCES/arch/x86/kernel/msr.c to learn how to use it.
>
You might also find these useful:
http://www.kernel.org/pub/linux/utils/cpu/msr-tools/msr-tools-1.1.2.tar.bz2
-hpa
next prev parent reply other threads:[~2008-02-06 5:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-06 3:29 Access MSR functions in userspace? Hasan Rashid
2008-02-06 4:00 ` Maxim Levitsky
2008-02-06 5:59 ` H. Peter Anvin [this message]
[not found] <200802070037.m170b4Bb000579@terminus.zytor.com>
2008-02-07 0:48 ` H. Peter Anvin
[not found] <200802070059.m170xqHv008164@terminus.zytor.com>
2008-02-07 1:09 ` H. Peter Anvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47A94CB8.3020303@zytor.com \
--to=hpa@zytor.com \
--cc=hasan@digitalpath.net \
--cc=linux-kernel@vger.kernel.org \
--cc=maximlevitsky@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox