Skip to content

Commit f49e577

Browse files
committed
xxx delay wait migration to get snapshot data
1 parent eaa236c commit f49e577

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vmm/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use std::rc::Rc;
3030
use std::sync::atomic::{AtomicBool, Ordering};
3131
use std::sync::mpsc::{Receiver, RecvError, SendError, Sender, TrySendError};
3232
use std::sync::{Arc, Barrier, Mutex};
33-
use std::thread::JoinHandle;
33+
use std::thread::{JoinHandle, sleep};
3434
#[cfg(not(target_arch = "riscv64"))]
3535
use std::time::{Duration, Instant};
3636
use std::{io, mem, result, thread};
@@ -2349,6 +2349,9 @@ impl Vmm {
23492349
}
23502350
}
23512351

2352+
// XXX temporarily to fetch statistics
2353+
sleep(Duration::from_secs(600));
2354+
23522355
// We release the locks early to enable locking them on the destination host.
23532356
// The VM is already stopped.
23542357
vm.release_disk_locks()

0 commit comments

Comments
 (0)