mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Add page size as a parameter for MemoryRangeTable::from_bitmap()
This will be helpful to support the creation of a MemoryRangeTable from virtio-mem, as it uses 2M pages. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
@@ -554,7 +554,7 @@ impl VhostUserHandle {
|
||||
let ptr = region.as_ptr() as *const u64;
|
||||
std::slice::from_raw_parts(ptr, len).to_vec()
|
||||
};
|
||||
Ok(MemoryRangeTable::from_bitmap(bitmap, 0))
|
||||
Ok(MemoryRangeTable::from_bitmap(bitmap, 0, 4096))
|
||||
} else {
|
||||
Err(Error::MissingShmLogRegion)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user