VirtualBox

Changeset 12566 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Sep 18, 2008 12:42:54 PM (16 years ago)
Author:
vboxsync
Message:

Backed out 36722, 36764 & 36770; no need for per-cpu mmio registations anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp

    r12561 r12566  
    8484#endif
    8585
    86     unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU;
    87     Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */
    88 
    8986    int rc;
    9087    if (RT_LIKELY(pRange->CTXALLSUFF(pfnWriteCallback)))
    91         rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhysFault, (void *)pvData, cb); /* @todo fix const!! */
     88        rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), GCPhysFault, (void *)pvData, cb); /* @todo fix const!! */
    9289    else
    9390        rc = VINF_SUCCESS;
     
    107104#endif
    108105
    109     unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU;
    110     Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */
    111 
    112106    int rc;
    113107    if (RT_LIKELY(pRange->CTXALLSUFF(pfnReadCallback)))
    114         rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhysFault, pvData, cb);
     108        rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), GCPhysFault, pvData, cb);
    115109    else
    116110    {
     
    589583    if (pRange->CTXALLSUFF(pfnFillCallback))
    590584    {
    591         unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU;
    592         Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns));  /** @todo SMP */
    593 
    594585        /*
    595586         * Use the fill callback.
     
    599590        {
    600591            /* addr++ variant. */
    601             rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), Phys, u32Data, cb, cTransfers);
     592            rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), Phys, u32Data, cb, cTransfers);
    602593            if (rc == VINF_SUCCESS)
    603594            {
     
    611602        {
    612603            /* addr-- variant. */
    613             rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), (Phys - (cTransfers - 1)) << SIZE_2_SHIFT(cb), u32Data, cb, cTransfers);
     604            rc = pRange->CTXALLSUFF(pfnFillCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), (Phys - (cTransfers - 1)) << SIZE_2_SHIFT(cb), u32Data, cb, cTransfers);
    614605            if (rc == VINF_SUCCESS)
    615606            {
     
    12771268         * Perform the read and deal with the result.
    12781269         */
    1279         unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU;
    1280         Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */
    1281 
    12821270#ifdef VBOX_WITH_STATISTICS
    12831271        if (pStats)
    12841272            STAM_PROFILE_ADV_START(&pStats->CTXALLSUFF(ProfRead), a);
    12851273#endif
    1286         int rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhys, pu32Value, cbValue);
     1274        int rc = pRange->CTXALLSUFF(pfnReadCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), GCPhys, pu32Value, cbValue);
    12871275#ifdef VBOX_WITH_STATISTICS
    12881276        if (pStats)
     
    13871375    if (pRange->CTXALLSUFF(pfnWriteCallback))
    13881376    {
    1389         unsigned idCPU = (pRange->enmCtx == IOMMMIOCTX_GLOBAL) ? 0 : pVM->idCPU;
    1390         Assert(pRange->a[idCPU].CTXALLSUFF(pDevIns)); /** @todo SMP */
    1391 
    13921377#ifdef VBOX_WITH_STATISTICS
    13931378        if (pStats)
    13941379            STAM_PROFILE_ADV_START(&pStats->CTXALLSUFF(ProfWrite), a);
    13951380#endif
    1396         int rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange->a[idCPU].CTXALLSUFF(pDevIns), pRange->a[idCPU].CTXALLSUFF(pvUser), GCPhys, &u32Value, cbValue);
     1381        int rc = pRange->CTXALLSUFF(pfnWriteCallback)(pRange->CTXALLSUFF(pDevIns), pRange->CTXALLSUFF(pvUser), GCPhys, &u32Value, cbValue);
    13971382#ifdef VBOX_WITH_STATISTICS
    13981383        if (pStats)
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