mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Enhance boot with info!() level messages
These messages are predominantly during the boot process but will also occur during events such as hotplug. These cover all the significant steps of the boot and can be helpful for diagnosing performance and functionality issues during the boot. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
8160c2884b
commit
b282ff44d4
@@ -1090,6 +1090,7 @@ impl Vmm {
|
||||
if let Some(dispatch_type) = self.epoll.dispatch_table[dispatch_idx] {
|
||||
match dispatch_type {
|
||||
EpollDispatch::Exit => {
|
||||
info!("VM exit event");
|
||||
// Consume the event.
|
||||
self.exit_evt.read().map_err(Error::EventFdRead)?;
|
||||
self.vmm_shutdown().map_err(Error::VmmShutdown)?;
|
||||
@@ -1097,6 +1098,7 @@ impl Vmm {
|
||||
break 'outer;
|
||||
}
|
||||
EpollDispatch::Reset => {
|
||||
info!("VM reset event");
|
||||
// Consume the event.
|
||||
self.reset_evt.read().map_err(Error::EventFdRead)?;
|
||||
self.vm_reboot().map_err(Error::VmReboot)?;
|
||||
@@ -1129,6 +1131,7 @@ impl Vmm {
|
||||
// Read from the API receiver channel
|
||||
let api_request = api_receiver.recv().map_err(Error::ApiRequestRecv)?;
|
||||
|
||||
info!("API request event: {:?}", api_request);
|
||||
match api_request {
|
||||
ApiRequest::VmCreate(config, sender) => {
|
||||
// We only store the passed VM config.
|
||||
|
||||
Reference in New Issue
Block a user