mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
vmm: add events for VM reboot
Signed-off-by: Wei Liu <liuwe@microsoft.com> Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
b15e5923ab
commit
55678b23ba
@ -1384,6 +1384,8 @@ impl RequestHandler for Vmm {
|
||||
}
|
||||
|
||||
fn vm_reboot(&mut self) -> result::Result<(), VmError> {
|
||||
event!("vm", "rebooting");
|
||||
|
||||
// First we stop the current VM
|
||||
let (config, serial_pty, console_pty, debug_console_pty, console_resize_pipe) =
|
||||
if let Some(mut vm) = self.vm.take() {
|
||||
@ -1451,6 +1453,8 @@ impl RequestHandler for Vmm {
|
||||
|
||||
self.vm = Some(vm);
|
||||
|
||||
event!("vm", "rebooted");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user