mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Handle the missing VM error
When trying to boot or shut a VM down, return an error if the VM was not previously created. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
@@ -58,6 +58,12 @@ pub enum ApiError {
|
||||
/// The VM config is missing.
|
||||
VmMissingConfig,
|
||||
|
||||
/// The VM is not booted.
|
||||
VmNotBooted,
|
||||
|
||||
/// The VM is not created.
|
||||
VmNotCreated,
|
||||
|
||||
/// The VM could not shutdown.
|
||||
VmShutdown(VmError),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user