aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/x86_64.rs
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-06-02 00:11:49 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-06-02 00:11:49 +0200
commit50bd6e37219fd6dabee4f661ed3530c0331c7b06 (patch)
tree27a62c40cbda59b58efc3d83f1bf9751c28cd394 /src/x86_64.rs
parent7e278dcb3df79f8c8b87d8147deca7280eefb7ec (diff)
downloadmini-kvm-rs-50bd6e37219fd6dabee4f661ed3530c0331c7b06.tar.gz
mini-kvm-rs-50bd6e37219fd6dabee4f661ed3530c0331c7b06.zip
added doc
Diffstat (limited to 'src/x86_64.rs')
-rw-r--r--src/x86_64.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/x86_64.rs b/src/x86_64.rs
index 978bd84..c16a6ad 100644
--- a/src/x86_64.rs
+++ b/src/x86_64.rs
@@ -1,3 +1,5 @@
+//! `x86_64` flags and bitfields.
+
/* Rflags Register */
/// Carry flag.
@@ -125,6 +127,12 @@ pub const CR4_LA57: u64 = 1 << 5;
/* Extended Feature Enable Register (EFER) */
+/// Extended Feature Enable Register MSR number.
+///
+/// MSR number used with the [`rdmsr`][msr] and [`wrmsr`][msr] instructions to read/write the
+/// `EFER` model specific register.
+///
+/// [msr]: https://johannst.github.io/notes/arch/x86_64.html#model-specific-register-msr
pub const MSR_EFER: u64 = 0xc000_0080;
/// Long Mode Enable.