mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 01:43:22 +00:00
Special treat VM Space clearing
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fda05e9e23
commit
c34706603a
@ -339,8 +339,7 @@ impl Vmar_ {
|
||||
}
|
||||
|
||||
fn clear_vm_space(&self) {
|
||||
let mut cursor = self.vm_space.cursor_mut(&(0..ROOT_VMAR_CAP_ADDR)).unwrap();
|
||||
cursor.unmap(ROOT_VMAR_CAP_ADDR);
|
||||
self.vm_space.clear().unwrap();
|
||||
}
|
||||
|
||||
pub fn destroy(&self, range: Range<usize>) -> Result<()> {
|
||||
|
Reference in New Issue
Block a user