mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
main: unify error message for hypervisor availability
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
4a00371fe8
commit
d56263706d
@ -32,14 +32,7 @@ enum Error {
|
||||
#[cfg(feature = "gdb")]
|
||||
#[error("Failed to create Debug EventFd: {0}")]
|
||||
CreateDebugEventFd(#[source] std::io::Error),
|
||||
#[cfg_attr(
|
||||
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}")
|
||||
)]
|
||||
#[error("Failed to open hypervisor interface (is hypervisor interface available?): {0}")]
|
||||
CreateHypervisor(#[source] hypervisor::HypervisorError),
|
||||
#[error("Failed to start the VMM thread: {0}")]
|
||||
StartVmmThread(#[source] vmm::Error),
|
||||
|
Loading…
Reference in New Issue
Block a user