mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
ci: Allow enough time for L2 VM to boot
Because the L2 VM running in the VFIO integration test is actually running as L3 (since the CI runs in a VM), it can take quite some time for this VM to boot. The way to solve this issue is to extend the sleep time before to try communicating with the L2 VM, but also to speed up the boot time by using virtio-console instead of serial. We suspect the use of serial, implying PIO VM exits for each character on the serial port is quite expensive compared to the paravirtualized console. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
37a7000fdd
commit
80c3fd922a
@@ -2374,10 +2374,10 @@ mod tests {
|
||||
.spawn()
|
||||
.unwrap();
|
||||
|
||||
thread::sleep(std::time::Duration::new(20, 0));
|
||||
thread::sleep(std::time::Duration::new(30, 0));
|
||||
|
||||
guest.ssh_command_l1("sudo systemctl start vfio")?;
|
||||
thread::sleep(std::time::Duration::new(30, 0));
|
||||
thread::sleep(std::time::Duration::new(60, 0));
|
||||
|
||||
// We booted our cloud hypervisor L2 guest with a "VFIOTAG" tag
|
||||
// added to its kernel command line.
|
||||
|
||||
Reference in New Issue
Block a user