vmm: api: Add a Snapshot command

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2019-11-24 18:39:06 +01:00
committed by Rob Bradford
parent 452475c280
commit cf8f8ce93a
3 changed files with 49 additions and 0 deletions

View File

@@ -180,6 +180,12 @@ pub enum Error {
/// Eventfd write error
EventfdError(std::io::Error),
/// Cannot snapshot VM
Snapshot(MigratableError),
/// Cannot send VM snapshot
SnapshotSend(MigratableError),
}
pub type Result<T> = result::Result<T, Error>;