mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Samuel Ortiz
parent
ca5f1d6de8
commit
aa98589bb4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user