mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Manage the exit and reset behaviours from the control loop
So that we don't need to forward an ExitBehaviour up to the VMM thread. This simplifies the control loop and the VMM thread even further. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
a95fa1c4e8
commit
1298b508bf
@@ -436,12 +436,6 @@ pub struct VmInfo<'a> {
|
||||
pub vm_cfg: &'a VmConfig,
|
||||
}
|
||||
|
||||
#[derive(PartialEq)]
|
||||
pub enum ExitBehaviour {
|
||||
Shutdown = 1,
|
||||
Reset = 2,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub enum VmState {
|
||||
Created,
|
||||
|
||||
Reference in New Issue
Block a user