diff options
Diffstat (limited to 'vm_control/src/lib.rs')
-rw-r--r-- | vm_control/src/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vm_control/src/lib.rs b/vm_control/src/lib.rs index d486081..bf363e1 100644 --- a/vm_control/src/lib.rs +++ b/vm_control/src/lib.rs @@ -204,10 +204,11 @@ impl VmRequest { _ => return VmResponse::Err(SysError::new(-EINVAL)), }; let pfn = *next_mem_pfn; - let slot = match vm.add_device_memory(GuestAddress((pfn << 12) as usize), mmap) { - Ok(slot) => slot, - Err(e) => return VmResponse::Err(e), - }; + let slot = + match vm.add_device_memory(GuestAddress((pfn << 12) as usize), mmap, false) { + Ok(slot) => slot, + Err(e) => return VmResponse::Err(e), + }; // TODO(zachr): Use a smarter allocation strategy. The current strategy is just // bumping this pointer, meaning the remove operation does not free any address // space. Given enough allocations, device memory may run out of address space and |