Skip to content

Commit

Permalink
SVSM/mm/vm/file_mapping: Fix tests
Browse files Browse the repository at this point in the history
The tests were not converted to the new page-table flags passing.

Signed-off-by: Joerg Roedel <[email protected]>
  • Loading branch information
joergroedel committed Nov 20, 2023
1 parent 2374c62 commit dde1f98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mm/vm/mapping/file_mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ mod tests {
fs::{create, initialize_fs, open, uninitialize_fs, FileHandle},
mm::{
alloc::{TestRootMem, DEFAULT_TEST_MEMORY_SIZE},
pagetable::PageTable,
pagetable::PTEntryFlags,
vm::{VirtualMapping, VMR},
},
types::PAGE_SIZE,
Expand Down Expand Up @@ -515,7 +515,7 @@ mod tests {
let vmr = VMR::new(
VirtAddr::from(0usize),
VirtAddr::from(16usize * PAGE_SIZE),
PageTable::data_flags(),
PTEntryFlags::data(),
);
let res = vm
.handle_page_fault(&vmr, PAGE_SIZE, true)
Expand Down Expand Up @@ -561,7 +561,7 @@ mod tests {
let vmr = VMR::new(
VirtAddr::from(0usize),
VirtAddr::from(16usize * PAGE_SIZE),
PageTable::data_flags(),
PTEntryFlags::data(),
);
let res = vm
.handle_page_fault(&vmr, PAGE_SIZE * 2 + 1, true)
Expand Down

0 comments on commit dde1f98

Please sign in to comment.