aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-05-30 01:35:05 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-05-30 01:35:05 +0200
commit795a5d7ecdbc1999b7cf7eabf5251a4e3cd192ce (patch)
tree149e223168228d29218231cc1dedda0c5d737ddc /src
parent4ad0f2f07280651ed4e20f50715ebb332d3b50bf (diff)
downloadmini-kvm-rs-795a5d7ecdbc1999b7cf7eabf5251a4e3cd192ce.tar.gz
mini-kvm-rs-795a5d7ecdbc1999b7cf7eabf5251a4e3cd192ce.zip
kvm_sys: make cr2 pub and fix typo in efer reg
Diffstat (limited to 'src')
-rw-r--r--src/kvm_sys.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kvm_sys.rs b/src/kvm_sys.rs
index 0add602..2ce8ba5 100644
--- a/src/kvm_sys.rs
+++ b/src/kvm_sys.rs
@@ -68,11 +68,11 @@ pub struct kvm_sregs {
pub gdt: kvm_dtable,
pub idt: kvm_dtable,
pub cr0: u64,
- cr2: u64,
+ pub cr2: u64,
pub cr3: u64,
pub cr4: u64,
pub cr8: u64,
- pub effer: u64,
+ pub efer: u64,
pub apic_base: u64,
pub interrupt_bitmap: [u64; 4],
}