Remove the activation lock and use RCU to protect PT removal

This commit is contained in:
Zhang Junyang
2025-03-23 21:15:18 +08:00
committed by Tate, Hongliang Tian
parent d873e121ff
commit 5b7637eac3
6 changed files with 71 additions and 161 deletions

View File

@ -355,7 +355,7 @@ impl Vmar_ {
/// Clears all content of the root VMAR.
fn clear_root_vmar(&self) -> Result<()> {
self.vm_space.clear().unwrap();
self.vm_space.clear();
let mut inner = self.inner.write();
inner.vm_mappings.clear();
Ok(())