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:
parent
ad9034ed1d
commit
3d5f9a3a98
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue