Skip to content

Commit db6b461

Browse files
mgudaramjyao1
authored andcommitted
fix to vmcall_raw unittests
Signed-off-by: Gudaram, Meghana <[email protected]>
1 parent 4e19941 commit db6b461

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/migtd/src/driver/crash.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const MSR_CRASH_P4: u32 = 0x40000104;
2020
const MSR_CRASH_CTL: u32 = 0x40000105;
2121
static GUEST_CRASH_MSR_SUPPORTED: AtomicBool = AtomicBool::new(false);
2222
const PAGE_SIZE: usize = 0x1_000;
23-
use alloc::format;
2423

2524
pub fn guest_crash_reg_supported() -> bool {
2625
GUEST_CRASH_MSR_SUPPORTED.load(Ordering::SeqCst)

src/migtd/src/driver/vmcall_raw.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
use crate::alloc::string::ToString;
66
#[cfg(feature = "vmcall-raw")]
77
use crate::driver::crash::update_guest_crash_reg_report;
8+
#[cfg(feature = "vmcall-raw")]
9+
use alloc::format;
810

911
#[cfg(feature = "vmcall-raw")]
1012
pub fn vmcall_raw_device_init() {

src/migtd/src/migration/logging.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ use crate::migration::MigrationResult;
99
use alloc::boxed::Box;
1010
use alloc::format;
1111
use alloc::vec::Vec;
12-
#[cfg(test)]
13-
use core::sync::atomic::Ordering;
1412
use core::sync::atomic::{AtomicBool, AtomicU32, AtomicU64, AtomicU8, Ordering};
1513
use lazy_static::lazy_static;
1614
use log::Level;
17-
#[cfg(test)]
18-
use log::Level;
1915
#[cfg(not(test))]
2016
use raw_cpuid::CpuId;
2117
use spin::Mutex;

0 commit comments

Comments
 (0)