VirtualBox

Changeset 45481 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 11, 2013 11:09:28 AM (12 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: More assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r45478 r45481  
    55905590
    55915591    int rc = hmR0VmxSaveGuestState(pVM, pVCpu, pMixedCtx);
     5592    Assert(pVCpu->hm.s.vmx.fUpdatedGuestState == VMX_UPDATED_GUEST_ALL);
    55925593    AssertRC(rc);
    55935594
     
    58395840                }
    58405841            }
    5841             else if (!(pVCpu->hm.s.vmx.u32ProcCtls & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_INT_WINDOW_EXIT))
     5842            else if (   !(pVCpu->hm.s.vmx.u32ProcCtls & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_INT_WINDOW_EXIT)
     5843                     && (pVM->hm.s.vmx.msr.vmx_proc_ctls.n.allowed1 & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_INT_WINDOW_EXIT))
    58425844            {
    58435845                /* Instruct VT-x to cause an interrupt-window exit as soon as the guest is ready to receive interrupts again. */
     
    68926894
    68936895    /* Indicate that we no longer need to VM-exit when the guest is ready to receive interrupts, it is now ready. */
     6896    Assert(pVCpu->hm.s.vmx.u32ProcCtls & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_INT_WINDOW_EXIT);
    68946897    pVCpu->hm.s.vmx.u32ProcCtls &= ~VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_INT_WINDOW_EXIT;
    68956898    int rc = VMXWriteVmcs32(VMX_VMCS32_CTRL_PROC_EXEC_CONTROLS, pVCpu->hm.s.vmx.u32ProcCtls);
     
    87538756        pVCpu->hm.s.fContextUseFlags |=   HM_CHANGED_GUEST_RIP | HM_CHANGED_GUEST_RSP | HM_CHANGED_GUEST_RFLAGS
    87548757                                        | HM_CHANGED_VMX_GUEST_APIC_STATE;
    8755 
    87568758        TRPMResetTrap(pVCpu);
    87578759        STAM_COUNTER_INC(&pVCpu->hm.s.StatExitShadowPF);
     
    87768778            Assert(!pVCpu->hm.s.Event.fPending);
    87778779            TRPMResetTrap(pVCpu);
     8780            Log(("#PF: Injecting #DF\n"));
    87788781            rc = hmR0VmxInjectXcptDF(pVM, pVCpu, pMixedCtx);
    87798782        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette