We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46a4b51 commit 48d5ac8Copy full SHA for 48d5ac8
1 file changed
src/hyperlight_host/src/hypervisor/hyperlight_vm.rs
@@ -621,7 +621,9 @@ impl HyperlightVm {
621
/// Get the current base page table physical address
622
pub(crate) fn get_root_pt(&mut self) -> Result<u64, AccessPageTableError> {
623
let sregs = self.vm.sregs()?;
624
- Ok(sregs.cr3)
+
625
+ // Mask off the flags bits
626
+ Ok(sregs.cr3 & !0xfff_u64)
627
}
628
629
/// Get the special registers that need to be stored in a snapshot.
0 commit comments