diff --git a/crates/xcl/src/hle/kernelx.rs b/crates/xcl/src/hle/kernelx.rs index 69f13e05c6..6ac9cf7e6a 100644 --- a/crates/xcl/src/hle/kernelx.rs +++ b/crates/xcl/src/hle/kernelx.rs @@ -1038,12 +1038,19 @@ unsafe fn unmap_away(away: &mut Away, at: usize, committed: &std::ops::Range bool { + LAZY.read().unwrap_or_else(|e| e.into_inner()).contains(&page) +} + /// `page` is unmapped: true if it was never used (nothing to keep of it). pub(super) fn unmark(page: usize) -> bool { LAZY.write().unwrap_or_else(|e| e.into_inner()).remove(&page)