Skip to content

Commit

Permalink
Let caller know about the shutdown reason. Is it VMX_EXIT_FAILED_VMEN…
Browse files Browse the repository at this point in the history
…TER_GS, is it VMX_EXIT_TRIPLE_FAULT? We want to know!
  • Loading branch information
leecher1337 committed Mar 10, 2019
1 parent bf5fb55 commit ccdf408
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ bool vcpu_is_panic(struct vcpu_t *vcpu)
if (vcpu->panicked) {
hax_error("vcpu has panicked, id:%d\n", vcpu->vcpu_id);
hax_panic_log(vcpu);
htun->_exit_reason = vmx(vcpu, exit_reason).basic_reason;
htun->_exit_status = HAX_EXIT_STATECHANGE;
return 1;
}
Expand Down

0 comments on commit ccdf408

Please sign in to comment.