Date: Sat, 17 May 2008 13:12:43 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Andriy Gapon <avg@icyb.net.ua> Cc: freebsd-hackers@freebsd.org Subject: Re: rdmsr from userspace Message-ID: <20080517101243.GH18958@deviant.kiev.zoral.com.ua> In-Reply-To: <482E93C0.4070802@icyb.net.ua> References: <482E93C0.4070802@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
--ejhj5mF8juGI/iew Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 17, 2008 at 11:13:52AM +0300, Andriy Gapon wrote: >=20 > It seems that rdmsr instruction can be executed only at the highest=20 > privilege level and thus is not permitted from userland. Maybe we should= =20 > provide something like Linux /dev/cpu/msr? > I don't like interface of that device, I think that ioctl approach would= =20 > be preferable in this case. > Something like create /dev/cpuN and allow some ioctls on it:=20 > 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. --ejhj5mF8juGI/iew Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkgur5sACgkQC3+MBN1Mb4hURQCfcnilZbpQqqMmy1xQsPSoZoqA 8qEAoK1OxSCTxAGZ53Jebag6x1Im1S7q =Lcx4 -----END PGP SIGNATURE----- --ejhj5mF8juGI/iew--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080517101243.GH18958>