mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Add "readonly" parameter MemoryManager::create_userspace_mapping
Use this boolean to turn on the KVM_MEM_READONLY flag to indicate that this memory mapping should not be writable by the VM. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
03cb26cc70
commit
7257e890ef
@@ -1320,6 +1320,7 @@ impl DeviceManager {
|
||||
fs_cache,
|
||||
addr,
|
||||
false,
|
||||
false,
|
||||
)
|
||||
.map_err(DeviceManagerError::MemoryManager)?;
|
||||
|
||||
@@ -1417,6 +1418,7 @@ impl DeviceManager {
|
||||
size,
|
||||
addr,
|
||||
pmem_cfg.mergeable,
|
||||
false,
|
||||
)
|
||||
.map_err(DeviceManagerError::MemoryManager)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user