diff --git a/vm-migration/src/lib.rs b/vm-migration/src/lib.rs index 5e6664492..0bb3fe3b8 100644 --- a/vm-migration/src/lib.rs +++ b/vm-migration/src/lib.rs @@ -56,6 +56,9 @@ pub enum MigratableError { #[error("Failed to retrieve dirty ranges for migratable component: {0}")] DirtyLog(#[source] anyhow::Error), + + #[error("Failed to complete migration for migratable component: {0}")] + CompleteMigration(#[source] anyhow::Error), } /// A Pausable component can be paused and resumed. @@ -301,4 +304,8 @@ pub trait Migratable: Send + Pausable + Snapshottable + Transportable { fn dirty_log(&mut self) -> std::result::Result { Ok(MemoryRangeTable::default()) } + + fn complete_migration(&mut self) -> std::result::Result<(), MigratableError> { + Ok(()) + } }