Skip to content

Commit

Permalink
test fixing
Browse files Browse the repository at this point in the history
Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
  • Loading branch information
ShadowCurse committed Sep 28, 2023
1 parent 27f49de commit 0eb43ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vmm/src/vstate/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ impl GuestMemoryExtension for GuestMemoryMmap {
}

/// Creates a memfd file with the given size.
pub fn create_memfd(mem_size: usize) -> Result<memfd::Memfd, MemoryError> {
pub fn create_memfd(size: usize) -> Result<memfd::Memfd, MemoryError> {
let mem_size = size << 20;
// Create a memfd.
let opts = memfd::MemfdOptions::default().allow_sealing(true);
let mem_file = opts.create("guest_mem").map_err(MemoryError::Memfd)?;
Expand Down

0 comments on commit 0eb43ad

Please sign in to comment.