lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <47A94CB8.3020303@zytor.com>
Date:	Tue, 05 Feb 2008 21:59:20 -0800
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Maxim Levitsky <maximlevitsky@...il.com>
CC:	hasan@...italpath.net, linux-kernel@...r.kernel.org
Subject: Re: Access MSR functions in userspace?

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ