virtio-devices, vm-migration: Update MigratableError types

Make sure the error types match the function from the Migratable trait.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2021-08-06 14:57:32 +02:00
committed by Bo Chen
parent 204be8611c
commit 1c3f8236e7
4 changed files with 18 additions and 24 deletions

View File

@@ -49,13 +49,13 @@ pub enum MigratableError {
MigrateSocket(#[source] std::io::Error),
#[error("Failed to start migration for migratable component: {0}")]
MigrateStart(#[source] anyhow::Error),
StartDirtyLog(#[source] anyhow::Error),
#[error("Failed to stop migration for migratable component: {0}")]
MigrateStop(#[source] anyhow::Error),
StopDirtyLog(#[source] anyhow::Error),
#[error("Failed to retrieve dirty ranges for migratable component: {0}")]
MigrateDirtyRanges(#[source] anyhow::Error),
DirtyLog(#[source] anyhow::Error),
}
/// A Pausable component can be paused and resumed.