vmm: Add some tracing of boot sequence

Add tracing of the VM boot sequence from the point at which the request
to create a VM is received to the hand-off to the vCPU threads running.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2022-09-16 16:56:36 +01:00
parent b35e6f3018
commit 1202b9a07a
6 changed files with 73 additions and 39 deletions
+3
View File
@@ -69,6 +69,7 @@ use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::{Arc, Barrier, Mutex};
use std::{cmp, io, result, thread};
use thiserror::Error;
use tracer::trace_scoped;
use vm_device::BusDevice;
#[cfg(feature = "guest_debug")]
use vm_memory::ByteValued;
@@ -1127,6 +1128,8 @@ impl CpuManager {
}
pub fn create_boot_vcpus(&mut self, entry_point: Option<EntryPoint>) -> Result<()> {
trace_scoped!("create_boot_vcpus");
self.create_vcpus(self.boot_vcpus(), entry_point)
}