vm-migration: Add protocol documentation and data structures

Add the documentation and basic implementation for supporting migration.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-10-28 17:36:17 +00:00
committed by Samuel Ortiz
parent ca5f1d6de8
commit aa98589bb4
2 changed files with 236 additions and 0 deletions
+5
View File
@@ -10,6 +10,8 @@ extern crate serde_derive;
use thiserror::Error;
pub mod protocol;
#[derive(Error, Debug)]
pub enum MigratableError {
#[error("Failed to pause migratable component: {0}")]
@@ -29,6 +31,9 @@ pub enum MigratableError {
#[error("Failed to receive migratable component snapshot: {0}")]
MigrateReceive(#[source] anyhow::Error),
#[error("Socket error: {0}")]
MigrateSocket(#[source] std::io::Error),
}
/// A Pausable component can be paused and resumed.