mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 19:03:27 +00:00
Use metadata to track VmFrame
s
In this commit, the frame metadata storage schema is implemented. The bootstrap process is refactored and a boot page table is introduced to perform early stage metadata mapping. The metadata is then used to track `VmFrame`s instead of the former `Arc` approach.
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
d24ddaae66
commit
69d464fc6b
@ -196,7 +196,7 @@ pub(super) struct Vmo_ {
|
||||
|
||||
fn clone_page(page: &VmFrame) -> Result<VmFrame> {
|
||||
let new_page = VmAllocOptions::new(1).alloc_single()?;
|
||||
new_page.copy_from_frame(page);
|
||||
new_page.copy_from(page);
|
||||
Ok(new_page)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user