VirtualBox

Changeset 52618 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 5, 2014 12:07:29 PM (10 years ago)
Author:
vboxsync
Message:

HostDrivers, Runtime, Devices, Additions: TSC delta measurement and other changes resulting from bumping supdrv major version. TSC delta measurement currently disabled.

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/SrvPciRawR0.cpp

    r44529 r52618  
    55
    66/*
    7  * Copyright (C) 2011-2012 Oracle Corporation
     7 * Copyright (C) 2011-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    115115    RTSpinlockAcquire(pThis->hSpinlock);
    116116    pThis->iPendingIrq = iHostIrq;
    117     RTSpinlockReleaseNoInts(pThis->hSpinlock);
     117    RTSpinlockRelease(pThis->hSpinlock);
    118118
    119119    /**
     
    872872    pDev->iPendingIrq = 0;
    873873    fTerminate = pDev->fTerminate;
    874     RTSpinlockReleaseNoInts(pDev->hSpinlock);
     874    RTSpinlockRelease(pDev->hSpinlock);
    875875
    876876    /* Block until new IRQs arrives */
     
    888888                    iPendingIrq = pDev->iPendingIrq;
    889889                    pDev->iPendingIrq = 0;
    890                     RTSpinlockReleaseNoInts(pDev->hSpinlock);
     890                    RTSpinlockRelease(pDev->hSpinlock);
    891891                }
    892892                else
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r52592 r52618  
    44 *
    55 * @remarks No lazy code changes.  If you don't understand exactly what you're
    6  *          doing, get an understand or forget it.
     6 *          doing, get an understanding or forget it.
    77 *          All changes shall be reviewed by bird before commit.  If not around,
    88 *          email and let Frank and/or Klaus OK the changes before committing.
     
    11821182    }
    11831183
    1184     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1184    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    11851185}
    11861186
     
    12151215    }
    12161216
    1217     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1217    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    12181218}
    12191219
     
    12421242        {
    12431243            intnetR0BusyIncIf(pIf);
    1244             RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1244            RTSpinlockRelease(pNetwork->hAddrSpinlock);
    12451245            return pIf;
    12461246        }
    12471247    }
    12481248
    1249     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1249    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    12501250    return NULL;
    12511251}
     
    12721272    {
    12731273        /* This shouldn't happen*/
    1274         RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1274        RTSpinlockRelease(pNetwork->hAddrSpinlock);
    12751275        return;
    12761276    }
     
    13131313    Assert(pCache->cEntries <= pCache->cEntriesAlloc);
    13141314
    1315     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1315    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    13161316}
    13171317
     
    15701570    }
    15711571
    1572     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1572    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    15731573    return pDstTab->cIfs
    15741574         ? (!pDstTab->fTrunkDst ? INTNETSWDECISION_INTNET : INTNETSWDECISION_BROADCAST)
     
    16311631    }
    16321632
    1633     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1633    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    16341634    return enmSwDecision;
    16351635}
     
    17441744    }
    17451745
    1746     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1746    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    17471747    return pDstTab->cIfs
    17481748         ? (!pDstTab->fTrunkDst ? INTNETSWDECISION_INTNET : INTNETSWDECISION_BROADCAST)
     
    18061806    }
    18071807
    1808     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1808    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    18091809    return INTNETSWDECISION_BROADCAST;
    18101810}
     
    18671867    }
    18681868
    1869     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1869    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    18701870    return !pDstTab->cIfs
    18711871        ? (!pDstTab->fTrunkDst ? INTNETSWDECISION_DROP   : INTNETSWDECISION_TRUNK)
     
    19091909    }
    19101910
    1911     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     1911    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    19121912    return pDstTab->fTrunkDst ? INTNETSWDECISION_TRUNK : INTNETSWDECISION_DROP;
    19131913}
     
    20032003                        if (pvOld)
    20042004                            *ppDstTab = pNew;
    2005                         RTSpinlockReleaseNoInts(pTrunk->hDstTabSpinlock);
     2005                        RTSpinlockRelease(pTrunk->hDstTabSpinlock);
    20062006                        if (pvOld)
    20072007                        {
     
    20372037                    pTab->cEntriesAllocated = cAllocated;
    20382038
    2039                     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     2039                    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    20402040
    20412041                    RTMemFree(paOld);
     
    21502150                }
    21512151
    2152                 RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     2152                RTSpinlockRelease(pNetwork->hAddrSpinlock);
    21532153
    21542154                if (pMatchingIf)
     
    21832183            }
    21842184
    2185             RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     2185            RTSpinlockRelease(pNetwork->hAddrSpinlock);
    21862186            break;
    21872187        }
     
    26462646    RTSpinlockAcquire(pIf->hRecvInSpinlock);
    26472647    int rc = intnetR0RingWriteFrame(&pIf->pIntBuf->Recv, pSG, pNewDstMac);
    2648     RTSpinlockReleaseNoInts(pIf->hRecvInSpinlock);
     2648    RTSpinlockRelease(pIf->hRecvInSpinlock);
    26492649    if (RT_SUCCESS(rc))
    26502650    {
     
    26732673            RTSpinlockAcquire(pIf->hRecvInSpinlock);
    26742674            rc = intnetR0RingWriteFrame(&pIf->pIntBuf->Recv, pSG, pNewDstMac);
    2675             RTSpinlockReleaseNoInts(pIf->hRecvInSpinlock);
     2675            RTSpinlockRelease(pIf->hRecvInSpinlock);
    26762676            if (RT_SUCCESS(rc))
    26772677            {
     
    32233223    else
    32243224        memset(&MacAddrTrunk, 0, sizeof(MacAddrTrunk));
    3225     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     3225    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    32263226    if (    ar_oper == RTNET_ARPOP_REPLY
    32273227        &&  !memcmp(&pArpIPv4->ar_tha, &MacAddrTrunk, sizeof(RTMAC)))
     
    34413441                && (!pNetwork->MacTab.fWireActive || (pTrunk->fNoPreemptDsts & INTNETTRUNKDIR_WIRE) ) );
    34423442
    3443     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     3443    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    34443444
    34453445    return fRc;
     
    37833783        pIfSender->MacAddr    = EthHdr.SrcMac;
    37843784
    3785         RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     3785        RTSpinlockRelease(pNetwork->hAddrSpinlock);
    37863786    }
    37873787
     
    41544154        }
    41554155
    4156         RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     4156        RTSpinlockRelease(pNetwork->hAddrSpinlock);
    41574157    }
    41584158    else
     
    42384238        }
    42394239
    4240         RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     4240        RTSpinlockRelease(pNetwork->hAddrSpinlock);
    42414241
    42424242        if (pTrunk)
     
    43374337    }
    43384338
    4339     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     4339    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    43404340
    43414341    /*
     
    47424742        PINTNETTRUNKIF pTrunk = pNetwork->MacTab.pTrunk;
    47434743
    4744         RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     4744        RTSpinlockRelease(pNetwork->hAddrSpinlock);
    47454745
    47464746        /* Notify the trunk about the interface being destroyed. */
     
    47544754        RTSpinlockAcquire(pNetwork->hAddrSpinlock);
    47554755        pIf->pNetwork = NULL;
    4756         RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     4756        RTSpinlockRelease(pNetwork->hAddrSpinlock);
    47574757
    47584758        SUPR0ObjRelease(pNetwork->pvObj, pIf->pSession);
     
    49684968                        intnetR0BusyIncTrunk(pTrunk);
    49694969
    4970                     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     4970                    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    49714971
    49724972                    if (pTrunk)
     
    50415041        pThis->MacAddr           = *pMacAddr;
    50425042
    5043         RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     5043        RTSpinlockRelease(pNetwork->hAddrSpinlock);
    50445044    }
    50455045    else
     
    50695069                                             && (pNetwork->fFlags & INTNET_OPEN_FLAGS_PROMISC_ALLOW_TRUNK_HOST);
    50705070
    5071         RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     5071        RTSpinlockRelease(pNetwork->hAddrSpinlock);
    50725072    }
    50735073    intnetR0BusyDecTrunk(pThis);
     
    51485148            RTSpinlockAcquire(pNetwork->hAddrSpinlock);
    51495149            pNetwork->MacTab.pTrunk = NULL;
    5150             RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     5150            RTSpinlockRelease(pNetwork->hAddrSpinlock);
    51515151
    51525152            intnetR0TrunkIfDestroy(pThis, pNetwork);
     
    52525252                }
    52535253            }
    5254             RTSpinlockReleaseNoInts(pThis->hDstTabSpinlock);
     5254            RTSpinlockRelease(pThis->hDstTabSpinlock);
    52555255            Assert(!pDstTab || iDstTab < pThis->cIntDstTabs);
    52565256        }
     
    52655265            {
    52665266                pThis->apIntDstTabs[iDstTab] = NULL;
    5267                 RTSpinlockReleaseNoInts(pThis->hDstTabSpinlock);
     5267                RTSpinlockRelease(pThis->hDstTabSpinlock);
    52685268                Assert(iDstTab < RT_ELEMENTS(pThis->apTaskDstTabs));
    52695269            }
    52705270            else
    52715271            {
    5272                 RTSpinlockReleaseNoInts(pThis->hDstTabSpinlock);
     5272                RTSpinlockRelease(pThis->hDstTabSpinlock);
    52735273                intnetR0AllocDstTab(pNetwork->MacTab.cEntriesAllocated, &pDstTab);
    52745274                iDstTab = 65535;
     
    53095309                        }
    53105310                }
    5311                 RTSpinlockReleaseNoInts(pThis->hDstTabSpinlock);
     5311                RTSpinlockRelease(pThis->hDstTabSpinlock);
    53125312                Assert(iDstTab < RT_MAX(RT_ELEMENTS(pThis->apTaskDstTabs), pThis->cIntDstTabs));
    53135313            }
     
    56635663    pNetwork->MacTab.fWireActive = false;
    56645664
    5665     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     5665    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    56665666
    56675667    /* Wait for all the interfaces to quiesce.  (Interfaces cannot be
     
    56995699    pNetwork->MacTab.pTrunk = NULL;
    57005700
    5701     RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     5701    RTSpinlockRelease(pNetwork->hAddrSpinlock);
    57025702
    57035703    if (pTrunk)
     
    58915891        }
    58925892
    5893         RTSpinlockReleaseNoInts(pNetwork->hAddrSpinlock);
     5893        RTSpinlockRelease(pNetwork->hAddrSpinlock);
    58945894    }
    58955895
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