virtio-devices: Reject dirty logging if backend does not support it

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-03-31 06:52:10 -07:00
parent cc1735c399
commit 070f3bbea1

View File

@@ -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