diff --git a/virtio-devices/src/vhost_user/vu_common_ctrl.rs b/virtio-devices/src/vhost_user/vu_common_ctrl.rs index 1e356f648..23e06a3c0 100644 --- a/virtio-devices/src/vhost_user/vu_common_ctrl.rs +++ b/virtio-devices/src/vhost_user/vu_common_ctrl.rs @@ -670,6 +670,10 @@ impl VhostUserHandle { } pub fn dirty_log(&mut self, last_ram_addr: u64) -> Result { + 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