mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 08:21:15 +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::Debug => {}
|
||||||
VcpuExit::Hlt => {
|
VcpuExit::Hlt => {
|
||||||
println!("HLT");
|
println!("HLT");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
VcpuExit::IrqWindowOpen => {}
|
VcpuExit::IrqWindowOpen => {}
|
||||||
VcpuExit::Shutdown => {}
|
VcpuExit::Shutdown => {}
|
||||||
|
Loading…
Reference in New Issue
Block a user