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:
@@ -2038,7 +2038,7 @@ impl Migratable for MemoryManager {
|
||||
.map(|(x, y)| x | y)
|
||||
.collect();
|
||||
|
||||
let sub_table = MemoryRangeTable::from_bitmap(dirty_bitmap, r.gpa);
|
||||
let sub_table = MemoryRangeTable::from_bitmap(dirty_bitmap, r.gpa, 4096);
|
||||
|
||||
if sub_table.regions().is_empty() {
|
||||
info!("Dirty Memory Range Table is empty");
|
||||
|
||||
Reference in New Issue
Block a user