Skip to content
/ msru Public

A Rust-friendly user-space wrapper for reading and writing values to MSRs.

License

Notifications You must be signed in to change notification settings

virtee/msru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msru

msru provides a Rust-friendly interface for x86_64 CPU MSRs (Model Specific Registers). It allows you to read and write to MSRs via a specified CPU msr device file (/dev/cpu/{cpu_number}/msr).

Installation

Add the following line to your Cargo.toml file:

[dependencies]
msru = "0.2.0"

Usage

use msru::Msr;

// X86_64 SYSCFG MSR
let msr: Msr = Msr::new(0xC0010010, 0)?;

let raw_value: u64 = msr.read()?;

// ...

About

A Rust-friendly user-space wrapper for reading and writing values to MSRs.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages