Skip to content

Commit

Permalink
Correctly restore guest_interruptibility when handling dbexception
Browse files Browse the repository at this point in the history
  • Loading branch information
lxylxy123456 committed Oct 23, 2022
1 parent 6792c4c commit 5252675
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ void xmhf_smpguest_arch_x86vmx_eventhandler_dbexception(VCPU *vcpu, struct regs
vcpu->vmcs.guest_RFLAGS |= g_vmx_lapic_guest_eflags_tfifmask;

//restore NMI blocking (likely enable NMIs)
vcpu->vmcs.guest_interruptibility |= g_vmx_lapic_guest_intr_nmimask;
vcpu->vmcs.guest_interruptibility =
(vcpu->vmcs.guest_interruptibility & (1U << 3)) | g_vmx_lapic_guest_intr_nmimask;

//restore exception bitmap
vcpu->vmcs.control_exception_bitmap = g_vmx_lapic_exception_bitmap;
Expand Down

0 comments on commit 5252675

Please sign in to comment.