VirtualBox

Changeset 13796 in vbox for trunk/src/VBox/VMM/VMReq.cpp


Ignore:
Timestamp:
Nov 4, 2008 6:37:33 PM (16 years ago)
Author:
vboxsync
Message:

VMM: some adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMReq.cpp

    r13782 r13796  
    638638                do
    639639                {
    640                     pNext = pUVM->aCpu[i].vm.s.pReqs;
     640                    pNext = pUVM->aCpus[i].vm.s.pReqs;
    641641                    pReq->pNext = pNext;
    642                 } while (!ASMAtomicCmpXchgPtr((void * volatile *)&pUVM->aCpu[i].vm.s.pReqs, (void *)pReq, (void *)pNext));
     642                } while (!ASMAtomicCmpXchgPtr((void * volatile *)&pUVM->aCpus[i].vm.s.pReqs, (void *)pReq, (void *)pNext));
    643643
    644644                /*
     
    683683        do
    684684        {
    685             pNext = pUVM->aCpu[idTarget].vm.s.pReqs;
     685            pNext = pUVM->aCpus[idTarget].vm.s.pReqs;
    686686            pReq->pNext = pNext;
    687         } while (!ASMAtomicCmpXchgPtr((void * volatile *)&pUVM->aCpu[idTarget].vm.s.pReqs, (void *)pReq, (void *)pNext));
     687        } while (!ASMAtomicCmpXchgPtr((void * volatile *)&pUVM->aCpus[idTarget].vm.s.pReqs, (void *)pReq, (void *)pNext));
    688688
    689689        /*
     
    703703        LogFlow(("VMR3ReqQueue: returns %Vrc\n", rc));
    704704    }
    705     else
    706     if (    pReq->enmDest == VMREQDEST_ANY
    707         &&  !pUVMCPU /* only EMT threads have a valid pointer stored in the TLS slot. */)
     705    else if (    pReq->enmDest == VMREQDEST_ANY
     706             &&  !pUVMCPU /* only EMT threads have a valid pointer stored in the TLS slot. */)
    708707    {
    709708        unsigned fFlags = ((VMREQ volatile *)pReq)->fFlags;     /* volatile paranoia */
     
    838837    while (rc <= VINF_SUCCESS)
    839838    {
    840         void *volatile *ppReqs;
    841 
    842839        /*
    843840         * Get pending requests.
    844841         */
     842        void *volatile *ppReqs;
    845843        if (enmDest == VMREQDEST_ANY)
    846844        {
     
    851849        else
    852850        {
    853             ppReqs = (void * volatile *)&pUVM->aCpu[enmDest].vm.s.pReqs;
     851            ppReqs = (void * volatile *)&pUVM->aCpus[enmDest].vm.s.pReqs;
    854852            if (RT_LIKELY(pUVM->pVM))
    855853                VMCPU_FF_CLEAR(pUVM->pVM, enmDest, VM_FF_REQUEST);
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