VirtualBox

Changeset 29905 in vbox


Ignore:
Timestamp:
May 31, 2010 12:59:42 PM (14 years ago)
Author:
vboxsync
Message:

PDM: Flushed out the PDMQueueFlush code as its unused and problematic wrt guest SMP.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm.h

    r29669 r29905  
    8181    /** Acquire the PDM lock. */
    8282    VMMCALLRING3_PDM_LOCK,
    83     /** Call PDMR3QueueFlushWorker. */
    84     VMMCALLRING3_PDM_QUEUE_FLUSH,
    8583    /** Acquire the PGM lock. */
    8684    VMMCALLRING3_PGM_LOCK,
  • trunk/src/VBox/VMM/PDMQueue.cpp

    r29902 r29905  
    712712    RTR0PTR           pItemsR0 = ASMAtomicXchgR0Ptr(&pQueue->pPendingR0, NIL_RTR0PTR);
    713713
    714     if (    !pItems
    715         &&  !pItemsRC
    716         &&  !pItemsR0)
    717         /* Somebody may be racing us ... never mind. */
    718         return true;
     714    AssertMsgReturn(   pItemsR0
     715                    || pItemsRC
     716                    || pItems,
     717                    ("Someone is racing us? This shouldn't happen!\n"),
     718                    true);
    719719
    720720    /*
     
    895895    Assert(pTimer == pQueue->pTimer); NOREF(pTimer);
    896896
    897     if (    pQueue->pPendingR3
    898         ||  pQueue->pPendingR0
    899         ||  pQueue->pPendingRC)
     897    if (   pQueue->pPendingR3
     898        || pQueue->pPendingR0
     899        || pQueue->pPendingRC)
    900900        pdmR3QueueFlush(pQueue);
    901901    int rc = TMTimerSetMillies(pQueue->pTimer, pQueue->cMilliesInterval);
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