mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-09 06:15:19 +00:00
vmm: vm: fix test_vm test case
We should break out from the loop after getting the HLT exit, otherwise the VM hangs forever. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
52b839694d
commit
5ebd02a572
@ -1493,6 +1493,7 @@ pub fn test_vm() {
|
||||
VcpuExit::Debug => {}
|
||||
VcpuExit::Hlt => {
|
||||
println!("HLT");
|
||||
break;
|
||||
}
|
||||
VcpuExit::IrqWindowOpen => {}
|
||||
VcpuExit::Shutdown => {}
|
||||
|
Loading…
Reference in New Issue
Block a user