dragonball: update comment for init_microvm

Rewrite the comment of Vm::init_microvm method for aarch64.

Fixes cargo test warnings on aarch64.

Fixes: #6969

Signed-off-by: xuejun-xj <jiyunxue@linux.alibaba.com>
This commit is contained in:
xuejun-xj 2023-04-17 16:17:04 +08:00
parent 099b4b0d0e
commit fd9b414646
3 changed files with 7 additions and 6 deletions

View File

@ -1019,6 +1019,7 @@ mod tests {
use vm_memory::{GuestAddress, MmapRegion}; use vm_memory::{GuestAddress, MmapRegion};
use super::*; use super::*;
#[cfg(target_arch = "x86_64")]
use crate::vm::CpuTopology; use crate::vm::CpuTopology;
impl DeviceManager { impl DeviceManager {

View File

@ -99,12 +99,11 @@ impl Vm {
/// Initialize the virtual machine instance. /// Initialize the virtual machine instance.
/// ///
/// It initialize the virtual machine instance by: /// It initialize the virtual machine instance by:
/// 1) initialize virtual machine global state and configuration. /// 1) Initialize virtual machine reset event fd.
/// 2) create system devices, such as interrupt controller. /// 2) Create and initialize vCPUs.
/// 3) create and start IO devices, such as serial, console, block, net, vsock etc. /// 3) Create and initialize interrupt controller.
/// 4) create and initialize vCPUs. /// 4) Create and initialize vPMU device.
/// 5) configure CPU power management features. /// 5) Create and initialize devices, such as virtio, block, net, vsock, vfio etc.
/// 6) load guest kernel image.
pub fn init_microvm( pub fn init_microvm(
&mut self, &mut self,
epoll_mgr: EpollManager, epoll_mgr: EpollManager,

View File

@ -860,6 +860,7 @@ impl Vm {
#[cfg(test)] #[cfg(test)]
pub mod tests { pub mod tests {
#[cfg(target_arch = "x86_64")]
use kvm_ioctls::VcpuExit; use kvm_ioctls::VcpuExit;
use linux_loader::cmdline::Cmdline; use linux_loader::cmdline::Cmdline;
use test_utils::skip_if_not_root; use test_utils::skip_if_not_root;