vmm: vm: fix test_vm test case
We should break out from the loop after getting the HLT exit, otherwise
the VM hangs forever.
@@ -1493,6 +1493,7 @@ pub fn test_vm() {
VcpuExit::Debug => {}
VcpuExit::Hlt => {
println!("HLT");
+ break;
}
VcpuExit::IrqWindowOpen => {}
VcpuExit::Shutdown => {}
