Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #239 from hyuan3/work
Browse files Browse the repository at this point in the history
Add VM pause support
  • Loading branch information
wcwang authored Sep 25, 2019
2 parents 1958f91 + dca031c commit 633e744
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/vcpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,14 @@ int vcpu_execute(struct vcpu_t *vcpu)
goto out;
}
}

// Check if Qemu pauses VM
if (htun->_exit_reason == HAX_EXIT_PAUSED) {
htun->_exit_status = HAX_EXIT_PAUSED;
hax_log(HAX_LOGD, "vcpu paused\n");
goto out;
}

err = cpu_vmx_execute(vcpu, htun);
vcpu_is_panic(vcpu);
out:
Expand Down

0 comments on commit 633e744

Please sign in to comment.