VirtualBox

Changeset 10297

Show
Ignore:
Timestamp:
07/07/08 09:54:28 (5 months ago)
Author:
vboxsync
Message:

More assertions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r9669 r10297  
    719719    int      rc; 
    720720    RTCPUID  idCpu = RTMpCpuId(); 
     721 
     722    Assert(!VM_FF_ISPENDING(pVM, VM_FF_PGM_SYNC_CR3 | VM_FF_PGM_SYNC_CR3_NON_GLOBAL)); 
    721723 
    722724    rc = CPUMQueryGuestCtxPtr(pVM, &pCtx); 
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r10269 r10297  
    883883        pVM->hwaccm.s.svm.idLastCpu = pCpu->idCpu; 
    884884    } 
     885    else 
     886        Assert(pVM->hwaccm.s.svm.idLastCpu == pCpu->idCpu); 
    885887 
    886888    /* Make sure we flush the TLB when required. Switch ASID to achieve the same thing, but without actually flushing the whole TLB (which is expensive). */ 
     
    15441546            STAM_COUNTER_INC(&pVM->hwaccm.s.StatFlushTLBCRxChange); 
    15451547 
    1546             /** @note Force a TLB flush. SVM requires us to do it manually. */ 
    1547             pVM->hwaccm.s.svm.fForceTLBFlush = true
     1548            /* Must be set by PGMSyncCR3 */ 
     1549            Assert(pVM->hwaccm.s.svm.fForceTLBFlush)
    15481550        } 
    15491551        if (rc == VINF_SUCCESS) 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy