@@ -41,6 +41,7 @@ use std::ptr::null_mut;
41
41
use std:: sync:: atomic:: AtomicU32 ;
42
42
use std:: sync:: Arc ;
43
43
44
+ use libc:: SIGRTMIN ;
44
45
use parking_lot:: lock_api:: RwLock ;
45
46
use parking_lot:: Mutex ;
46
47
use serde:: Deserialize ;
@@ -54,15 +55,14 @@ use crate::ffi;
54
55
use crate :: hv:: { error, Hypervisor , MemMapOption , Result , VmConfig } ;
55
56
56
57
#[ cfg( target_arch = "aarch64" ) ]
57
- use bindings:: KvmDevType ;
58
- use bindings:: KVM_API_VERSION ;
58
+ use self :: bindings:: KvmDevType ;
59
+ use self :: bindings:: KVM_API_VERSION ;
59
60
#[ cfg( target_arch = "x86_64" ) ]
60
- use bindings:: { KvmCpuid2 , KvmCpuid2Flag , KvmCpuidEntry2 , KVM_MAX_CPUID_ENTRIES } ;
61
+ use self :: bindings:: { KvmCpuid2 , KvmCpuid2Flag , KvmCpuidEntry2 , KVM_MAX_CPUID_ENTRIES } ;
61
62
#[ cfg( target_arch = "x86_64" ) ]
62
- use ioctls:: kvm_get_supported_cpuid;
63
- use ioctls:: { kvm_create_vm, kvm_get_api_version, kvm_get_vcpu_mmap_size} ;
64
- use libc:: SIGRTMIN ;
65
- use vm:: { KvmVm , VmInner } ;
63
+ use self :: ioctls:: kvm_get_supported_cpuid;
64
+ use self :: ioctls:: { kvm_create_vm, kvm_get_api_version, kvm_get_vcpu_mmap_size} ;
65
+ use self :: vm:: { KvmVm , VmInner } ;
66
66
67
67
#[ trace_error]
68
68
#[ derive( DebugTrace , Snafu ) ]
0 commit comments