mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
main: unify error message for hypervisor availability
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
+1
-8
@@ -32,14 +32,7 @@ enum Error {
|
|||||||
#[cfg(feature = "gdb")]
|
#[cfg(feature = "gdb")]
|
||||||
#[error("Failed to create Debug EventFd: {0}")]
|
#[error("Failed to create Debug EventFd: {0}")]
|
||||||
CreateDebugEventFd(#[source] std::io::Error),
|
CreateDebugEventFd(#[source] std::io::Error),
|
||||||
#[cfg_attr(
|
#[error("Failed to open hypervisor interface (is hypervisor interface available?): {0}")]
|
||||||
feature = "kvm",
|
|
||||||
error("Failed to open hypervisor interface (is /dev/kvm available?): {0}")
|
|
||||||
)]
|
|
||||||
#[cfg_attr(
|
|
||||||
feature = "mshv",
|
|
||||||
error("Failed to open hypervisor interface (is /dev/mshv available?): {0}")
|
|
||||||
)]
|
|
||||||
CreateHypervisor(#[source] hypervisor::HypervisorError),
|
CreateHypervisor(#[source] hypervisor::HypervisorError),
|
||||||
#[error("Failed to start the VMM thread: {0}")]
|
#[error("Failed to start the VMM thread: {0}")]
|
||||||
StartVmmThread(#[source] vmm::Error),
|
StartVmmThread(#[source] vmm::Error),
|
||||||
|
|||||||
Reference in New Issue
Block a user