VirtualBox

Ignore:
Timestamp:
Feb 28, 2012 7:47:00 PM (13 years ago)
Author:
vboxsync
Message:

Corrected a bunch of HC and GC uses in status codes.

File:
1 edited

Legend:

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

    r39078 r40280  
    213213 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
    214214 *                                      status code must be passed on to EM.
    215  * @retval  VINF_IOM_HC_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
     215 * @retval  VINF_IOM_R3_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
    216216 *
    217217 * @param   pVM         VM handle.
     
    228228#ifndef IN_RING3
    229229    if (rc2 == VERR_SEM_BUSY)
    230         return VINF_IOM_HC_IOPORT_READ;
     230        return VINF_IOM_R3_IOPORT_READ;
    231231#endif
    232232    AssertRC(rc2);
     
    271271            STAM_STATS({ if (pStats) STAM_COUNTER_INC(&pStats->InRZToR3); });
    272272            IOM_UNLOCK(pVM);
    273             return VINF_IOM_HC_IOPORT_READ;
     273            return VINF_IOM_R3_IOPORT_READ;
    274274        }
    275275#endif
     
    281281         * Call the device.
    282282         */
    283         VBOXSTRICTRC rcStrict = PDMCritSectEnter(pDevIns->CTX_SUFF(pCritSectRo), VINF_IOM_HC_IOPORT_READ);
     283        VBOXSTRICTRC rcStrict = PDMCritSectEnter(pDevIns->CTX_SUFF(pCritSectRo), VINF_IOM_R3_IOPORT_READ);
    284284        if (rcStrict != VINF_SUCCESS)
    285285        {
     
    303303            STAM_COUNTER_INC(&pStats->CTX_SUFF_Z(In));
    304304# ifndef IN_RING3
    305         else if (rcStrict == VINF_IOM_HC_IOPORT_READ && pStats)
     305        else if (rcStrict == VINF_IOM_R3_IOPORT_READ && pStats)
    306306            STAM_COUNTER_INC(&pStats->InRZToR3);
    307307# endif
     
    337337# endif
    338338        IOM_UNLOCK(pVM);
    339         return VINF_IOM_HC_IOPORT_READ;
     339        return VINF_IOM_R3_IOPORT_READ;
    340340    }
    341341#endif
     
    352352        /* Ring-3 will have to create the statistics record. */
    353353        IOM_UNLOCK(pVM);
    354         return VINF_IOM_HC_IOPORT_READ;
     354        return VINF_IOM_R3_IOPORT_READ;
    355355# else
    356356        pStats = iomR3IOPortStatsCreate(pVM, Port, NULL);
     
    386386 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
    387387 *                                      status code must be passed on to EM.
    388  * @retval  VINF_IOM_HC_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
     388 * @retval  VINF_IOM_R3_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
    389389 *
    390390 * @param   pVM         VM handle.
     
    400400#ifndef IN_RING3
    401401    if (rc2 == VERR_SEM_BUSY)
    402         return VINF_IOM_HC_IOPORT_READ;
     402        return VINF_IOM_R3_IOPORT_READ;
    403403#endif
    404404    AssertRC(rc2);
     
    446446            STAM_STATS({ if (pStats) STAM_COUNTER_INC(&pStats->InRZToR3); });
    447447            IOM_UNLOCK(pVM);
    448             return VINF_IOM_HC_IOPORT_READ;
     448            return VINF_IOM_R3_IOPORT_READ;
    449449        }
    450450#endif
     
    456456         * Call the device.
    457457         */
    458         VBOXSTRICTRC rcStrict = PDMCritSectEnter(pDevIns->CTX_SUFF(pCritSectRo), VINF_IOM_HC_IOPORT_READ);
     458        VBOXSTRICTRC rcStrict = PDMCritSectEnter(pDevIns->CTX_SUFF(pCritSectRo), VINF_IOM_R3_IOPORT_READ);
    459459        if (rcStrict != VINF_SUCCESS)
    460460        {
     
    478478            STAM_COUNTER_INC(&pStats->CTX_SUFF_Z(In));
    479479# ifndef IN_RING3
    480         else if (rcStrict == VINF_IOM_HC_IOPORT_READ && pStats)
     480        else if (rcStrict == VINF_IOM_R3_IOPORT_READ && pStats)
    481481            STAM_COUNTER_INC(&pStats->InRZToR3);
    482482# endif
     
    499499# endif
    500500        IOM_UNLOCK(pVM);
    501         return VINF_IOM_HC_IOPORT_READ;
     501        return VINF_IOM_R3_IOPORT_READ;
    502502    }
    503503#endif
     
    514514        /* Ring-3 will have to create the statistics record. */
    515515        IOM_UNLOCK(pVM);
    516         return VINF_IOM_HC_IOPORT_READ;
     516        return VINF_IOM_R3_IOPORT_READ;
    517517# else
    518518        pStats = iomR3IOPortStatsCreate(pVM, Port, NULL);
     
    538538 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
    539539 *                                      status code must be passed on to EM.
    540  * @retval  VINF_IOM_HC_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
     540 * @retval  VINF_IOM_R3_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
    541541 *
    542542 * @param   pVM         VM handle.
     
    551551#ifndef IN_RING3
    552552    if (rc2 == VERR_SEM_BUSY)
    553         return VINF_IOM_HC_IOPORT_WRITE;
     553        return VINF_IOM_R3_IOPORT_WRITE;
    554554#endif
    555555    AssertRC(rc2);
     
    596596            STAM_STATS({ if (pStats) STAM_COUNTER_INC(&pStats->OutRZToR3); });
    597597            IOM_UNLOCK(pVM);
    598             return VINF_IOM_HC_IOPORT_WRITE;
     598            return VINF_IOM_R3_IOPORT_WRITE;
    599599        }
    600600#endif
     
    606606         * Call the device.
    607607         */
    608         VBOXSTRICTRC rcStrict = PDMCritSectEnter(pDevIns->CTX_SUFF(pCritSectRo), VINF_IOM_HC_IOPORT_WRITE);
     608        VBOXSTRICTRC rcStrict = PDMCritSectEnter(pDevIns->CTX_SUFF(pCritSectRo), VINF_IOM_R3_IOPORT_WRITE);
    609609        if (rcStrict != VINF_SUCCESS)
    610610        {
     
    628628            STAM_COUNTER_INC(&pStats->CTX_SUFF_Z(Out));
    629629# ifndef IN_RING3
    630         else if (rcStrict == VINF_IOM_HC_IOPORT_WRITE && pStats)
     630        else if (rcStrict == VINF_IOM_R3_IOPORT_WRITE && pStats)
    631631            STAM_COUNTER_INC(&pStats->OutRZToR3);
    632632# endif
     
    648648# endif
    649649        IOM_UNLOCK(pVM);
    650         return VINF_IOM_HC_IOPORT_WRITE;
     650        return VINF_IOM_R3_IOPORT_WRITE;
    651651    }
    652652#endif
     
    664664        /* R3 will have to create the statistics record. */
    665665        IOM_UNLOCK(pVM);
    666         return VINF_IOM_HC_IOPORT_WRITE;
     666        return VINF_IOM_R3_IOPORT_WRITE;
    667667# else
    668668        pStats = iomR3IOPortStatsCreate(pVM, Port, NULL);
     
    686686 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
    687687 *                                      status code must be passed on to EM.
    688  * @retval  VINF_IOM_HC_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
     688 * @retval  VINF_IOM_R3_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
    689689 *
    690690 * @param   pVM         VM handle.
     
    700700#ifndef IN_RING3
    701701    if (rc2 == VERR_SEM_BUSY)
    702         return VINF_IOM_HC_IOPORT_WRITE;
     702        return VINF_IOM_R3_IOPORT_WRITE;
    703703#endif
    704704    AssertRC(rc2);
     
    746746            STAM_STATS({ if (pStats) STAM_COUNTER_INC(&pStats->OutRZToR3); });
    747747            IOM_UNLOCK(pVM);
    748             return VINF_IOM_HC_IOPORT_WRITE;
     748            return VINF_IOM_R3_IOPORT_WRITE;
    749749        }
    750750#endif
     
    756756         * Call the device.
    757757         */
    758         VBOXSTRICTRC rcStrict = PDMCritSectEnter(pDevIns->CTX_SUFF(pCritSectRo), VINF_IOM_HC_IOPORT_WRITE);
     758        VBOXSTRICTRC rcStrict = PDMCritSectEnter(pDevIns->CTX_SUFF(pCritSectRo), VINF_IOM_R3_IOPORT_WRITE);
    759759        if (rcStrict != VINF_SUCCESS)
    760760        {
     
    778778            STAM_COUNTER_INC(&pStats->CTX_SUFF_Z(Out));
    779779# ifndef IN_RING3
    780         else if (rcStrict == VINF_IOM_HC_IOPORT_WRITE && pStats)
     780        else if (rcStrict == VINF_IOM_R3_IOPORT_WRITE && pStats)
    781781            STAM_COUNTER_INC(&pStats->OutRZToR3);
    782782# endif
     
    799799# endif
    800800        IOM_UNLOCK(pVM);
    801         return VINF_IOM_HC_IOPORT_WRITE;
     801        return VINF_IOM_R3_IOPORT_WRITE;
    802802    }
    803803#endif
     
    814814        /* Ring-3 will have to create the statistics record. */
    815815        IOM_UNLOCK(pVM);
    816         return VINF_IOM_HC_IOPORT_WRITE;
     816        return VINF_IOM_R3_IOPORT_WRITE;
    817817# else
    818818        pStats = iomR3IOPortStatsCreate(pVM, Port, NULL);
     
    937937 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
    938938 *                                      status code must be passed on to EM.
    939  * @retval  VINF_IOM_HC_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
     939 * @retval  VINF_IOM_R3_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
    940940 * @retval  VINF_EM_RAW_GUEST_TRAP      The exception was left pending. (TRPMRaiseXcptErr)
    941941 * @retval  VINF_TRPM_XCPT_DISPATCHED   The exception was raised and dispatched for raw-mode execution. (TRPMRaiseXcptErr)
     
    980980        }
    981981        else
    982             AssertMsg(rcStrict == VINF_IOM_HC_IOPORT_READ || RT_FAILURE(rcStrict), ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict)));
     982            AssertMsg(rcStrict == VINF_IOM_R3_IOPORT_READ || RT_FAILURE(rcStrict), ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict)));
    983983    }
    984984    else
     
    997997 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
    998998 *                                      status code must be passed on to EM.
    999  * @retval  VINF_IOM_HC_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
     999 * @retval  VINF_IOM_R3_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
    10001000 * @retval  VINF_EM_RAW_GUEST_TRAP      The exception was left pending. (TRPMRaiseXcptErr)
    10011001 * @retval  VINF_TRPM_XCPT_DISPATCHED   The exception was raised and dispatched for raw-mode execution. (TRPMRaiseXcptErr)
     
    10321032         */
    10331033        rcStrict = IOMIOPortWrite(pVM, uPort, u64Data, cbSize);
    1034         AssertMsg(rcStrict == VINF_SUCCESS || rcStrict == VINF_IOM_HC_IOPORT_WRITE || (rcStrict >= VINF_EM_FIRST && rcStrict <= VINF_EM_LAST) || RT_FAILURE(rcStrict), ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict)));
     1034        AssertMsg(rcStrict == VINF_SUCCESS || rcStrict == VINF_IOM_R3_IOPORT_WRITE || (rcStrict >= VINF_EM_FIRST && rcStrict <= VINF_EM_LAST) || RT_FAILURE(rcStrict), ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict)));
    10351035    }
    10361036    else
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