Skip to content

Commit

Permalink
Fix for VMX_EXIT_FAILED_VMENTER_GS when entering VM after a STI on HA…
Browse files Browse the repository at this point in the history
…X_DEBUG_ENABLE
  • Loading branch information
leecher1337 committed Mar 16, 2019
1 parent ccdf408 commit 06ab1fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/vcpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,11 @@ static void load_dirty_vmcs_fields(struct vcpu_t *vcpu)
vcpu->rflags_dirty = 1;
vcpu->debug_control_dirty = 0;
}
if ((vcpu->debug_control & HAX_DEBUG_STEP) &&
(vmx(vcpu, interruptibility_state).raw & 3u)) {
vmx(vcpu, interruptibility_state).raw &= ~3u;
vcpu->interruptibility_dirty = 1;
}
if (vcpu->rflags_dirty) {
vmwrite(vcpu, GUEST_RFLAGS, state->_rflags);
vcpu->rflags_dirty = 0;
Expand Down

0 comments on commit 06ab1fe

Please sign in to comment.