VirtualBox

Changeset 10609 in vbox


Ignore:
Timestamp:
Jul 14, 2008 4:28:23 PM (17 years ago)
Author:
vboxsync
Message:

Check for unexpected rescheduling.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

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

    r10607 r10609  
    781781    uint8_t     u8LastVTPR;
    782782    PHWACCM_CPUINFO pCpu = 0;
     783#ifdef VBOX_STRICT
     784    RTCPUID  idCpuCheck;
     785#endif
    783786
    784787    STAM_PROFILE_ADV_START(&pVM->hwaccm.s.StatEntry, x);
     
    888891     *       (until the actual world switch)
    889892     */
     893
     894#ifdef VBOX_STRICT
     895    idCpuCheck = RTMpCpuId();
     896#endif
    890897
    891898    /* Load the guest state; *must* be here as it sets up the shadow cr0 for lazy fpu syncing! */
     
    972979    Assert(pVMCB->ctrl.u64LBRVirt == 0);
    973980
     981#ifdef VBOX_STRICT
     982    Assert(idCpuCheck == RTMpCpuId());
     983#endif
    974984    pVM->hwaccm.s.svm.pfnVMRun(pVM->hwaccm.s.svm.pVMCBHostPhys, pVM->hwaccm.s.svm.pVMCBPhys, pCtx);
    975985    STAM_PROFILE_ADV_STOP(&pVM->hwaccm.s.StatInGC, x);
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r10607 r10609  
    10371037    bool        fGuestStateSynced = false;
    10381038    unsigned    cResume = 0;
     1039#ifdef VBOX_STRICT
     1040    RTCPUID  idCpuCheck;
     1041#endif
    10391042
    10401043    Log2(("\nE"));
     
    11931196     *       (until the actual world switch)
    11941197     */
     1198#ifdef VBOX_STRICT
     1199    idCpuCheck = RTMpCpuId();
     1200#endif
    11951201    /* Save the host state first. */
    11961202    rc  = VMXR0SaveHostState(pVM);
     
    12301236    /* All done! Let's start VM execution. */
    12311237    STAM_PROFILE_ADV_START(&pVM->hwaccm.s.StatInGC, x);
     1238#ifdef VBOX_STRICT
     1239    Assert(idCpuCheck == RTMpCpuId());
     1240#endif
    12321241    rc = pVM->hwaccm.s.vmx.pfnStartVM(pVM->hwaccm.s.vmx.fResumeVM, pCtx);
    12331242
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