mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
vmm: vm: Add dirty log related passthrough methods
This allows code running in the VMM to access the VM's MemoryManager's functionality for managing the dirty log including resetting it but also generating a table. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
cf6763dfdb
commit
b34703d29f
@ -1704,6 +1704,19 @@ impl Vm {
|
||||
|
||||
Ok(table)
|
||||
}
|
||||
|
||||
pub fn start_memory_dirty_log(&self) -> std::result::Result<(), MigratableError> {
|
||||
self.memory_manager.lock().unwrap().start_memory_dirty_log()
|
||||
}
|
||||
|
||||
pub fn dirty_memory_range_table(
|
||||
&self,
|
||||
) -> std::result::Result<MemoryRangeTable, MigratableError> {
|
||||
self.memory_manager
|
||||
.lock()
|
||||
.unwrap()
|
||||
.dirty_memory_range_table()
|
||||
}
|
||||
}
|
||||
|
||||
impl Pausable for Vm {
|
||||
|
Loading…
x
Reference in New Issue
Block a user