diff --git a/vmm/src/lib.rs b/vmm/src/lib.rs index 3a5b85a08..c5d4bb876 100644 --- a/vmm/src/lib.rs +++ b/vmm/src/lib.rs @@ -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(()) }