hypervisor: add a function to check availability

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2022-05-09 21:34:21 +00:00
committed by Liu Wei
parent c3ce5aa5b1
commit aa66526ea0
3 changed files with 25 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ use thiserror::Error;
///
///
pub enum HypervisorError {
///
/// Hypervisor availability check error
///
#[error("Failed to check availability of the hypervisor: {0}")]
HypervisorAvailableCheck(#[source] anyhow::Error),
///
/// hypervisor creation error
///