VirtualBox

Changeset 13146 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Oct 9, 2008 10:58:12 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37655
Message:

#1865: Renamed PGMPhysReadGCPhys -> PGMPhysSimpleReadGCPhys, PGMPhysWriteGCPhys -> PGMPhysSimpleWriteGCPhys, PGMPhysReadGCPtrSafe -> PGMPhysReadGCPtr and PGMPhysWriteGCPtrSafe -> PGMPhysWriteGCPtr. This puts PGMPhysRead/Write and PGMPhysRead/WriteGCPtr in the same group.

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

Legend:

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

    r13144 r13146  
    145145        ||  enmMode == PGMMODE_PROTECTED
    146146        ||  DBGFADDRESS_IS_PHYS(pAddress) )
    147         rc = PGMPhysReadGCPhys(pVM, pvBuf, pAddress->FlatPtr, cbRead);
     147        rc = PGMPhysSimpleReadGCPhys(pVM, pvBuf, pAddress->FlatPtr, cbRead);
    148148    else
    149149        rc = PGMPhysSimpleReadGCPtr(pVM, pvBuf, pAddress->FlatPtr, cbRead);
     
    203203        ||  enmMode == PGMMODE_PROTECTED
    204204        ||  DBGFADDRESS_IS_PHYS(pAddress) )
    205         rc = PGMPhysReadGCPhys(pVM, pszBuf, pAddress->FlatPtr, cchBuf);
     205        rc = PGMPhysSimpleReadGCPhys(pVM, pszBuf, pAddress->FlatPtr, cchBuf);
    206206    else
    207207        rc = PGMPhysSimpleReadGCPtr(pVM, pszBuf, pAddress->FlatPtr, cchBuf);
  • trunk/src/VBox/VMM/PGM.cpp

    r13107 r13146  
    229229 *
    230230 * Allocation points:
    231  *      - PGMPhysWriteGCPhys and PGMPhysWrite.
     231 *      - PGMPhysSimpleWriteGCPhys and PGMPhysWrite.
    232232 *      - Replacing a zero page mapping at \#PF.
    233233 *      - Replacing a shared page mapping at \#PF.
  • trunk/src/VBox/VMM/PGMPhysRWTmpl.h

    r13060 r13146  
    2424 * Read physical memory. (one byte/word/dword)
    2525 *
    26  * This API respects access handlers and MMIO. Use PGMPhysReadGCPhys() if you
     26 * This API respects access handlers and MMIO. Use PGMPhysSimpleReadGCPhys() if you
    2727 * want to ignore those.
    2828 *
     
    6565 * Write to physical memory. (one byte/word/dword)
    6666 *
    67  * This API respects access handlers and MMIO. Use PGMPhysReadGCPhys() if you
     67 * This API respects access handlers and MMIO. Use PGMPhysSimpleReadGCPhys() if you
    6868 * want to ignore those.
    6969 *
  • trunk/src/VBox/VMM/VM.cpp

    r12989 r13146  
    13261326                           "ss:sp=0000:%04x ", esp);
    13271327            uint32_t Start = esp & ~(uint32_t)63;
    1328             int rc = PGMPhysReadGCPhys(pVM, abBuf, Start, 0x100);
     1328            int rc = PGMPhysSimpleReadGCPhys(pVM, abBuf, Start, 0x100);
    13291329            if (VBOX_SUCCESS(rc))
    13301330                RTLogRelPrintf("0000:%04x TO 0000:%04x:\n"
     
    13381338            if (esp < 0x2000 && esp > 0x1fc0)
    13391339            {
    1340                 rc = PGMPhysReadGCPhys(pVM, abBuf, 0x8000, 0x800);
     1340                rc = PGMPhysSimpleReadGCPhys(pVM, abBuf, 0x8000, 0x800);
    13411341                if (VBOX_SUCCESS(rc))
    13421342                    RTLogRelPrintf("0000:8000 TO 0000:87ff:\n"
     
    13471347            if (true)
    13481348            {
    1349                 rc = PGMPhysReadGCPhys(pVM, abBuf, 0x8000, 0x200);
     1349                rc = PGMPhysSimpleReadGCPhys(pVM, abBuf, 0x8000, 0x200);
    13501350                if (VBOX_SUCCESS(rc))
    13511351                    RTLogRelPrintf("2000:0000 TO 2000:01ff:\n"
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r13144 r13146  
    330330    return VINF_SUCCESS;
    331331#else
    332     return PGMPhysReadGCPtrSafe(pVM, pDest, GCSrc, cb);
     332    return PGMPhysReadGCPtr(pVM, pDest, GCSrc, cb);
    333333#endif
    334334}
     
    361361
    362362#else
    363     return PGMPhysWriteGCPtrSafe(pVM, GCDest, pSrc, cb);
     363    return PGMPhysWriteGCPtr(pVM, GCDest, pSrc, cb);
    364364#endif
    365365}
     
    13401340        LogFlow(("emInterpretStosWD dest=%04X:%VGv (%VGv) cbSize=%d\n", pRegFrame->es, GCOffset, GCDest, cbSize));
    13411341
    1342         rc = PGMPhysWriteGCPtrSafe(pVM, GCDest, &pRegFrame->rax, cbSize);
     1342        rc = PGMPhysWriteGCPtr(pVM, GCDest, &pRegFrame->rax, cbSize);
    13431343        if (VBOX_FAILURE(rc))
    13441344            return VERR_EM_INTERPRETER;
     
    13811381        while (cTransfers)
    13821382        {
    1383             rc = PGMPhysWriteGCPtrSafe(pVM, GCDest, &pRegFrame->rax, cbSize);
     1383            rc = PGMPhysWriteGCPtr(pVM, GCDest, &pRegFrame->rax, cbSize);
    13841384            if (VBOX_FAILURE(rc))
    13851385            {
  • trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp

    r12989 r13146  
    258258    return MMGCRamReadNoTrapHandler(pDest, (void *)GCSrc, cb);
    259259#else
    260     return PGMPhysReadGCPtrSafe(pVM, pDest, GCSrc, cb);
     260    return PGMPhysReadGCPtr(pVM, pDest, GCSrc, cb);
    261261#endif
    262262}
     
    269269    return MMGCRamWriteNoTrapHandler((void *)GCDest, pSrc, cb);
    270270#else
    271     return PGMPhysWriteGCPtrSafe(pVM, GCDest, pSrc, cb);
     271    return PGMPhysWriteGCPtr(pVM, GCDest, pSrc, cb);
    272272#endif
    273273}
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r13145 r13146  
    11311131 * Read physical memory.
    11321132 *
    1133  * This API respects access handlers and MMIO. Use PGMPhysReadGCPhys() if you
     1133 * This API respects access handlers and MMIO. Use PGMPhysSimpleReadGCPhys() if you
    11341134 * want to ignore those.
    11351135 *
     
    13891389 * Write to physical memory.
    13901390 *
    1391  * This API respects access handlers and MMIO. Use PGMPhysReadGCPhys() if you
     1391 * This API respects access handlers and MMIO. Use PGMPhysSimpleReadGCPhys() if you
    13921392 * want to ignore those.
    13931393 *
     
    17311731 * @param   cb          The number of bytes to read.
    17321732 */
    1733 VMMDECL(int) PGMPhysReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb)
     1733VMMDECL(int) PGMPhysSimpleReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb)
    17341734{
    17351735# if defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0) || defined(VBOX_WITH_NEW_PHYS_CODE)
     
    18731873 * @param   cb          The number of bytes to write.
    18741874 */
    1875 VMMDECL(int) PGMPhysWriteGCPhys(PVM pVM, RTGCPHYS GCPhysDst, const void *pvSrc, size_t cb)
     1875VMMDECL(int) PGMPhysSimpleWriteGCPhys(PVM pVM, RTGCPHYS GCPhysDst, const void *pvSrc, size_t cb)
    18761876{
    18771877# if defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0) || defined(VBOX_WITH_NEW_PHYS_CODE)
    1878     LogFlow(("PGMPhysWriteGCPhys: %RGp %zu\n", GCPhysDst, cb));
     1878    LogFlow(("PGMPhysSimpleWriteGCPhys: %RGp %zu\n", GCPhysDst, cb));
    18791879
    18801880    /*
     
    19431943        return VINF_SUCCESS;
    19441944
    1945     LogFlow(("PGMPhysWriteGCPhys: %RGp %zu\n", GCPhysDst, cb));
     1945    LogFlow(("PGMPhysSimpleWriteGCPhys: %RGp %zu\n", GCPhysDst, cb));
    19461946
    19471947    /*
     
    23982398 * @param   cb          The number of bytes to read.
    23992399 */
    2400 /** @todo use the PGMPhysSimpleReadGCPtr name and rename the unsafe one to something appropriate */
    2401 VMMDECL(int) PGMPhysReadGCPtrSafe(PVM pVM, void *pvDst, RTGCPTR GCPtrSrc, size_t cb)
     2400VMMDECL(int) PGMPhysReadGCPtr(PVM pVM, void *pvDst, RTGCPTR GCPtrSrc, size_t cb)
    24022401{
    24032402    RTGCPHYS    GCPhys;
     
    24102409        return VINF_SUCCESS;
    24112410
    2412     LogFlow(("PGMPhysReadGCPtrSafe: %VGv %d\n", GCPtrSrc, cb));
     2411    LogFlow(("PGMPhysReadGCPtr: %VGv %d\n", GCPtrSrc, cb));
    24132412
    24142413    /*
     
    24722471 */
    24732472/** @todo use the PGMPhysWriteGCPtr name and rename the unsafe one to something appropriate */
    2474 VMMDECL(int) PGMPhysWriteGCPtrSafe(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb)
     2473VMMDECL(int) PGMPhysWriteGCPtr(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb)
    24752474{
    24762475    RTGCPHYS    GCPhys;
     
    24832482        return VINF_SUCCESS;
    24842483
    2485     LogFlow(("PGMPhysWriteGCPtrSafe: %VGv %d\n", GCPtrDst, cb));
     2484    LogFlow(("PGMPhysWriteGCPtr: %VGv %d\n", GCPtrDst, cb));
    24862485
    24872486    /*
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r13100 r13146  
    898898        *(uint32_t *)pu32 = pRegFrame->eax;
    899899#else
    900         PGMPhysWriteGCPhys(pVM, GCPhysFault, &pRegFrame->eax, 4);
     900        PGMPhysSimpleWriteGCPhys(pVM, GCPhysFault, &pRegFrame->eax, 4);
    901901#endif
    902902        pu32           += 4;
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