mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: mark a possible improvement
This would be a good opportunity to optimize another pointless vector away, but I don't have a good way to test this at the moment. But maybe someone else gives it a shot. On-behalf-of: SAP julian.stecklina@sap.com Signed-off-by: Julian Stecklina <julian.stecklina@cyberus-technology.de>
This commit is contained in:
committed by
Rob Bradford
parent
ad9034ed1d
commit
3d5f9a3a98
@@ -391,6 +391,8 @@ impl BlocksState {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO We can avoid creating a new bitmap here, if we switch the code
|
||||
// to use Vec<u64> to keep dirty bits and just pass it as is.
|
||||
MemoryRangeTable::from_bitmap(bitmap, start_addr, VIRTIO_MEM_DEFAULT_BLOCK_SIZE)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user