Skip to content

Commit 1e37648

Browse files
committed
[feat] make VmxExitReason::INIT return as CpuDown
1 parent 5aaa8ce commit 1e37648

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/vmx/vcpu.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,8 +1493,11 @@ impl<H: AxVCpuHal> AxArchVCpu for VmxVcpu<H> {
14931493
AxVCpuExitReason::Halt
14941494
}
14951495
VmxExitReason::INIT => {
1496-
warn!("VMX INIT: {:#x?}, just bring down current VM", exit_info);
1497-
AxVCpuExitReason::SystemDown
1496+
debug!(
1497+
"VmxExitReason::INIT: {:#x?}, bringing down this vCPU",
1498+
exit_info
1499+
);
1500+
AxVCpuExitReason::CpuDown { _state: 0 }
14981501
}
14991502
VmxExitReason::VMFUNC => {
15001503
warn!("VMX unsupported VM-Exit: {:#x?}", exit_info);

0 commit comments

Comments
 (0)