mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Reject dirty logging if backend does not support it
Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -670,6 +670,10 @@ impl VhostUserHandle {
|
||||
}
|
||||
|
||||
pub fn dirty_log(&mut self, last_ram_addr: u64) -> Result<MemoryRangeTable> {
|
||||
if !self.supports_migration {
|
||||
return Err(Error::MigrationNotSupported);
|
||||
}
|
||||
|
||||
// The log region is updated by creating a new region that is sent to
|
||||
// the backend. This ensures the backend stops logging to the previous
|
||||
// region. The previous region is returned and processed to create the
|
||||
|
||||
Reference in New Issue
Block a user