VirtualBox

Changeset 12985 in vbox


Ignore:
Timestamp:
Oct 4, 2008 11:25:26 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37418
Message:

PDMQueue: pQueueFlushR3 isn't necessary.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMInternal.h

    r12984 r12985  
    843843    /** Linked list of force action driven PDM queues. */
    844844    R3PTRTYPE(struct PDMQUEUE *)    pQueuesForced;
    845     /** Pointer to the queue which should be manually flushed - R3 Ptr.
    846      * Only touched by EMT. */
    847     R3PTRTYPE(struct PDMQUEUE *)    pQueueFlushR3;
    848845    /** Pointer to the queue which should be manually flushed - R0 Ptr.
    849846     * Only touched by EMT. */
    850847    R0PTRTYPE(struct PDMQUEUE *)    pQueueFlushR0;
    851     /** Pointer to the queue which should be manually flushed - RC Ptr. */
     848    /** Pointer to the queue which should be manually flushed - RC Ptr.
     849     * Only touched by EMT. */
    852850    RCPTRTYPE(struct PDMQUEUE *)    pQueueFlushRC;
    853851#if HC_ARCH_BITS == 64
  • trunk/src/VBox/VMM/PDMQueue.cpp

    r12984 r12985  
    574574                pQueue->pVMRC = pVM->pVMRC;
    575575
    576                 /* Pending GC items. */
     576                /* Pending RC items. */
    577577                if (pQueue->pPendingRC)
    578578                {
     
    789789 * flush in ring-3.
    790790 *
    791  * The queue which should be flushed is pointed to by either pQueueFlushGC,
    792  * pQueueFlushHC, or pQueueue. This function will flush that queue and
    793  * recalc the queue FF.
     791 * The queue which should be flushed is pointed to by either pQueueFlushRC,
     792 * pQueueFlushR0, or pQueue. This function will flush that queue and recalc
     793 * the queue FF.
    794794 *
    795795 * @param   pVM     The VM handle.
     
    798798PDMR3DECL(void) PDMR3QueueFlushWorker(PVM pVM, PPDMQUEUE pQueue)
    799799{
    800     Assert(pVM->pdm.s.pQueueFlushR3 || pVM->pdm.s.pQueueFlushR0 || pVM->pdm.s.pQueueFlushRC || pQueue);
     800    Assert(pVM->pdm.s.pQueueFlushR0 || pVM->pdm.s.pQueueFlushRC || pQueue);
    801801    VM_ASSERT_EMT(pVM);
    802802
     
    814814        pVM->pdm.s.pQueueFlushR0 = NIL_RTR0PTR;
    815815    }
    816     else if (!pQueue)
    817     {
    818         pQueue = pVM->pdm.s.pQueueFlushR3;
    819         pVM->pdm.s.pQueueFlushR3 = NULL;
    820     }
    821     Assert(!pVM->pdm.s.pQueueFlushR3 && !pVM->pdm.s.pQueueFlushR0 && !pVM->pdm.s.pQueueFlushRC);
     816    Assert(!pVM->pdm.s.pQueueFlushR0 && !pVM->pdm.s.pQueueFlushRC);
    822817
    823818    if (    !pQueue
     
    825820    {
    826821        /*
    827          * Recalc the FF.
     822         * Recalc the FF (for the queues using force action).
    828823         */
    829824        VM_FF_CLEAR(pVM, VM_FF_PDM_QUEUES);
  • trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp

    r12984 r12985  
    308308    GEN_CHECK_OFF(PDM, pQueuesTimer);
    309309    GEN_CHECK_OFF(PDM, pQueuesForced);
    310     GEN_CHECK_OFF(PDM, pQueueFlushR3);
    311310    GEN_CHECK_OFF(PDM, pQueueFlushR0);
    312311    GEN_CHECK_OFF(PDM, pQueueFlushRC);
Note: See TracChangeset for help on using the changeset viewer.

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