VirtualBox

Changeset 14755 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
Nov 28, 2008 2:58:01 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
40070
Message:

#1865: Converted 4 PGM*2HC* conversion functions to RTR3PTR.

Location:
trunk/src/VBox/VMM/PATM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/CSAM.cpp

    r14075 r14755  
    578578    }
    579579
    580     rc = PGMPhysGCPtr2HCPtr(pVM, pGCPtr, &pHCPtr);
     580    rc = PGMPhysGCPtr2R3Ptr(pVM, pGCPtr, &pHCPtr);
    581581    if (rc != VINF_SUCCESS)
    582582    {
     
    12791279            Log(("Jump through jump table\n"));
    12801280
    1281             rc2 = PGMPhysGCPtr2HCPtr(pVM, pJumpTableGC, (PRTHCPTR)&pJumpTableHC);
     1281            rc2 = PGMPhysGCPtr2R3Ptr(pVM, pJumpTableGC, (PRTHCPTR)&pJumpTableHC);
    12821282            if (rc2 == VINF_SUCCESS)
    12831283            {
     
    23282328    if (PAGE_ADDRESS(GCPtrIDT) == PAGE_ADDRESS(GCPtrIDT+cGates*sizeof(VBOXIDTE)))
    23292329    {
    2330         /* Just convert the IDT address to a HC pointer. The whole IDT fits in one page. */
    2331         rc = PGMPhysGCPtr2HCPtr(pVM, GCPtrIDT, (PRTHCPTR)&pGuestIdte);
     2330        /* Just convert the IDT address to a R3 pointer. The whole IDT fits in one page. */
     2331        rc = PGMPhysGCPtr2R3Ptr(pVM, GCPtrIDT, (PRTR3PTR)&pGuestIdte);
    23322332        if (RT_FAILURE(rc))
    23332333        {
  • trunk/src/VBox/VMM/PATM/PATM.cpp

    r13960 r14755  
    604604    {
    605605        /** @note pPrivInstrHC is probably not valid anymore */
    606         rc = PGMPhysGCPtr2HCPtr(pVM, pPatch->patch.pPrivInstrGC, (PRTHCPTR)&pPatch->patch.pPrivInstrHC);
     606        rc = PGMPhysGCPtr2R3Ptr(pVM, pPatch->patch.pPrivInstrGC, (PRTR3PTR)&pPatch->patch.pPrivInstrHC);
    607607        if (rc == VINF_SUCCESS)
    608608        {
     
    790790    {
    791791        /** @note pPrivInstrHC is probably not valid anymore */
    792         rc = PGMPhysGCPtr2HCPtr(pVM, pPatch->patch.pPrivInstrGC, (PRTHCPTR)&pPatch->patch.pPrivInstrHC);
     792        rc = PGMPhysGCPtr2R3Ptr(pVM, pPatch->patch.pPrivInstrGC, (PRTR3PTR)&pPatch->patch.pPrivInstrHC);
    793793        if (rc == VINF_SUCCESS)
    794794        {
     
    995995    }
    996996
    997     rc = PGMPhysGCPtr2HCPtr(pVM, pGCPtr, (void **)&pHCPtr);
     997    rc = PGMPhysGCPtr2R3Ptr(pVM, pGCPtr, (void **)&pHCPtr);
    998998    if (rc != VINF_SUCCESS)
    999999    {
     
    41214121    }
    41224122    GCPhys = GCPhys + (pInstrGC & PAGE_OFFSET_MASK);
    4123     rc = PGMPhysGCPhys2HCPtr(pVM, GCPhys, MAX_INSTR_SIZE, (void **)&pInstrHC);
     4123    rc = PGMPhysGCPhys2R3Ptr(pVM, GCPhys, MAX_INSTR_SIZE, (void **)&pInstrHC);
    41244124    AssertRCReturn(rc, rc);
    41254125
     
    44024402    uint8_t *pInstrHC;
    44034403
    4404     int rc = PGMPhysGCPtr2HCPtr(pVM, pInstrGC, (RTHCPTR *)&pInstrHC);
     4404    int rc = PGMPhysGCPtr2R3Ptr(pVM, pInstrGC, (PRTR3PTR)&pInstrHC);
    44054405    if (rc == VINF_SUCCESS)
    44064406    {
     
    49994999
    50005000                /** pPrivInstrHC is probably not valid anymore */
    5001                 rc = PGMPhysGCPtr2HCPtr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTHCPTR)&pPatchRec->patch.pPrivInstrHC);
     5001                rc = PGMPhysGCPtr2R3Ptr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTR3PTR)&pPatchRec->patch.pPrivInstrHC);
    50025002                if (rc == VINF_SUCCESS)
    50035003                {
     
    52185218                Assert(!(pPatch->flags & PATMFL_PATCHED_GUEST_CODE));
    52195219                /** @todo -> pPrivInstrHC is probably not valid anymore */
    5220                 rc = PGMPhysGCPtr2HCPtr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTHCPTR)&pPatchRec->patch.pPrivInstrHC);
     5220                rc = PGMPhysGCPtr2R3Ptr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTR3PTR)&pPatchRec->patch.pPrivInstrHC);
    52215221                if (rc == VINF_SUCCESS)
    52225222                {
  • trunk/src/VBox/VMM/PATM/PATMSSM.cpp

    r13830 r14755  
    582582        pPatchRec->patch.pPrivInstrHC   = 0;
    583583        /* The GC virtual ptr is fixed, but we must convert it manually again to HC. */
    584         rc = PGMPhysGCPtr2HCPtr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTHCPTR)&pPatchRec->patch.pPrivInstrHC);
     584        rc = PGMPhysGCPtr2R3Ptr(pVM, pPatchRec->patch.pPrivInstrGC, (PRTR3PTR)&pPatchRec->patch.pPrivInstrHC);
    585585        /* Can fail due to page or page table not present. */
    586586
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