@@ -19,9 +19,7 @@ use linux_loader::loader::pe::PE as Loader;
1919use linux_loader:: loader:: KernelLoader ;
2020use seccompiler:: BpfThreadMap ;
2121use userfaultfd:: Uffd ;
22- use utils:: eventfd:: EventFd ;
2322use utils:: time:: TimestampUs ;
24- use utils:: u64_to_usize;
2523use vm_memory:: ReadVolatile ;
2624#[ cfg( target_arch = "aarch64" ) ]
2725use vm_superio:: Rtc ;
@@ -61,6 +59,8 @@ use crate::logger::{debug, error};
6159use crate :: persist:: { MicrovmState , MicrovmStateError } ;
6260use crate :: resources:: VmResources ;
6361use crate :: snapshot:: Persist ;
62+ use crate :: utils:: eventfd:: EventFd ;
63+ use crate :: utils:: u64_to_usize;
6464use crate :: vmm_config:: boot_source:: BootConfig ;
6565use crate :: vmm_config:: instance_info:: InstanceInfo ;
6666use crate :: vmm_config:: machine_config:: { VmConfig , VmConfigError } ;
@@ -412,7 +412,7 @@ pub enum BuildMicrovmFromSnapshotError {
412412 /// Failed to create microVM and vCPUs: {0}
413413 CreateMicrovmAndVcpus ( #[ from] StartMicrovmError ) ,
414414 /// Could not access KVM: {0}
415- KvmAccess ( #[ from] utils:: errno:: Error ) ,
415+ KvmAccess ( #[ from] crate :: utils:: errno:: Error ) ,
416416 /// Error configuring the TSC, frequency not present in the given snapshot.
417417 TscFrequencyNotPresent ,
418418 #[ cfg( target_arch = "x86_64" ) ]
@@ -1022,7 +1022,6 @@ pub mod tests {
10221022 use std:: io:: Write ;
10231023
10241024 use linux_loader:: cmdline:: Cmdline ;
1025- use utils:: tempfile:: TempFile ;
10261025
10271026 use super :: * ;
10281027 use crate :: arch:: DeviceType ;
@@ -1034,6 +1033,7 @@ pub mod tests {
10341033 use crate :: mmds:: data_store:: { Mmds , MmdsVersion } ;
10351034 use crate :: mmds:: ns:: MmdsNetworkStack ;
10361035 use crate :: test_utils:: { arch_mem, single_region_mem, single_region_mem_at} ;
1036+ use crate :: utils:: tempfile:: TempFile ;
10371037 use crate :: vmm_config:: balloon:: { BalloonBuilder , BalloonDeviceConfig , BALLOON_DEV_ID } ;
10381038 use crate :: vmm_config:: boot_source:: DEFAULT_KERNEL_CMDLINE ;
10391039 use crate :: vmm_config:: drive:: { BlockBuilder , BlockDeviceConfig } ;
0 commit comments