VirtualBox

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


Ignore:
Timestamp:
Aug 8, 2008 11:25:08 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34404
Message:

iprt: Retired HCSTRING, replaced by R3STRING.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMInternal.h

    r11221 r11309  
    37703770    }
    37713771    Log2(("PHYS2VIRT: Removing %VGp-%VGp %#RX32 %s\n",
    3772           pPhys2Virt->Core.Key, pPhys2Virt->Core.KeyLast, pPhys2Virt->offNextAlias, HCSTRING(pCur->pszDesc)));
     3772          pPhys2Virt->Core.Key, pPhys2Virt->Core.KeyLast, pPhys2Virt->offNextAlias, R3STRING(pCur->pszDesc)));
    37733773    pPhys2Virt->offNextAlias = 0;
    37743774    pPhys2Virt->Core.KeyLast = NIL_RTGCPHYS; /* require reinsert */
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r10824 r11309  
    188188#include "PGMAllShw.h"
    189189
    190 /* Guest - protected mode */ 
    191 #define PGM_GST_TYPE                PGM_TYPE_PROT 
    192 #define PGM_GST_NAME(name)          PGM_GST_NAME_PROT(name) 
    193 #define PGM_BTH_NAME(name)          PGM_BTH_NAME_AMD64_PROT(name) 
    194 #define BTH_PGMPOOLKIND_PT_FOR_PT   PGMPOOLKIND_PAE_PT_FOR_PHYS 
    195 #include "PGMAllBth.h" 
    196 #undef BTH_PGMPOOLKIND_PT_FOR_PT 
    197 #undef PGM_BTH_NAME 
    198 #undef PGM_GST_TYPE 
     190/* Guest - protected mode */
     191#define PGM_GST_TYPE                PGM_TYPE_PROT
     192#define PGM_GST_NAME(name)          PGM_GST_NAME_PROT(name)
     193#define PGM_BTH_NAME(name)          PGM_BTH_NAME_AMD64_PROT(name)
     194#define BTH_PGMPOOLKIND_PT_FOR_PT   PGMPOOLKIND_PAE_PT_FOR_PHYS
     195#include "PGMAllBth.h"
     196#undef BTH_PGMPOOLKIND_PT_FOR_PT
     197#undef PGM_BTH_NAME
     198#undef PGM_GST_TYPE
    199199#undef PGM_GST_NAME
    200200
     
    938938    }
    939939    /* The PDPT was cached or created; hook it up now. */
    940     pPml4e->u |=   pShwPage->Core.Key 
     940    pPml4e->u |=   pShwPage->Core.Key
    941941                | (pGstPml4e->u & ~(X86_PML4E_PG_MASK | X86_PML4E_AVL_MASK | X86_PML4E_PCD | X86_PML4E_PWT));
    942942
    943943    const unsigned iPdPt = (GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_AMD64;
    944     PX86PDPT  pPdpt = (PX86PDPT)PGMPOOL_PAGE_2_PTR(pVM, pShwPage);   
     944    PX86PDPT  pPdpt = (PX86PDPT)PGMPOOL_PAGE_2_PTR(pVM, pShwPage);
    945945    PX86PDPE  pPdpe = &pPdpt->a[iPdPt];
    946946
     
    13931393
    13941394/**
    1395  * Performs and schedules necessary updates following a CR3 load or reload, 
     1395 * Performs and schedules necessary updates following a CR3 load or reload,
    13961396 * without actually flushing the TLB as with PGMFlushTLB.
    13971397 *
     
    17121712            if (rc != VERR_PAGE_TABLE_NOT_PRESENT)
    17131713            {
    1714                 AssertMsgFailed(("Conflict at %VGv with %s\n", GCPtr, HCSTRING(pMapping->pszDesc)));
     1714                AssertMsgFailed(("Conflict at %VGv with %s\n", GCPtr, R3STRING(pMapping->pszDesc)));
    17151715                cErrors++;
    17161716                break;
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r9254 r11309  
    8686{
    8787    Log(("PGMHandlerPhysicalRegisterEx: enmType=%d GCPhys=%VGp GCPhysLast=%VGp pfnHandlerR3=%VHv pvUserR3=%VHv pfnHandlerR0=%VHv pvUserR0=%VHv pfnHandlerGC=%VRv pvUserGC=%VRv pszDesc=%s\n",
    88           enmType, GCPhys, GCPhysLast, pfnHandlerR3, pvUserR3, pfnHandlerR0, pvUserR0, pfnHandlerGC, pvUserGC, HCSTRING(pszDesc)));
     88          enmType, GCPhys, GCPhysLast, pfnHandlerR3, pvUserR3, pfnHandlerR0, pvUserR0, pfnHandlerGC, pvUserGC, R3STRING(pszDesc)));
    8989
    9090    /*
     
    294294    {
    295295        LogFlow(("PGMHandlerPhysicalDeregister: Removing Range %#VGp-%#VGp %s\n",
    296                  pCur->Core.Key, pCur->Core.KeyLast, HCSTRING(pCur->pszDesc)));
     296                 pCur->Core.Key, pCur->Core.KeyLast, R3STRING(pCur->pszDesc)));
    297297
    298298        /*
     
    12641264    {
    12651265        AssertMsgFailed(("virt handler phys has incorrect key! %VGp %VGv %s\n",
    1266                          pVirt->aPhysToVirt[0].Core.Key, pVirt->GCPtr, HCSTRING(pVirt->pszDesc)));
     1266                         pVirt->aPhysToVirt[0].Core.Key, pVirt->GCPtr, R3STRING(pVirt->pszDesc)));
    12671267        pState->cErrors++;
    12681268    }
     
    12721272    {
    12731273        AssertMsgFailed(("virt handler phys has incorrect key! %VGp %VGv %s\n",
    1274                          pVirt->aPhysToVirt[pVirt->cPages - 1].Core.KeyLast, pVirt->GCPtrLast, HCSTRING(pVirt->pszDesc)));
     1274                         pVirt->aPhysToVirt[pVirt->cPages - 1].Core.KeyLast, pVirt->GCPtrLast, R3STRING(pVirt->pszDesc)));
    12751275        pState->cErrors++;
    12761276    }
     
    12911291            {
    12921292                AssertMsgFailed(("virt handler phys out of sync. %VGp GCPhysNew=~0 iPage=%#x %VGv %s\n",
    1293                                  pVirt->aPhysToVirt[iPage].Core.Key, iPage, GCPtr, HCSTRING(pVirt->pszDesc)));
     1293                                 pVirt->aPhysToVirt[iPage].Core.Key, iPage, GCPtr, R3STRING(pVirt->pszDesc)));
    12941294                pState->cErrors++;
    12951295            }
     
    13011301        {
    13021302            AssertMsgFailed(("virt handler phys out of sync. %VGp GCPhysGst=%VGp iPage=%#x %VGv %s\n",
    1303                              pVirt->aPhysToVirt[iPage].Core.Key, GCPhysGst, iPage, GCPtr, HCSTRING(pVirt->pszDesc)));
     1303                             pVirt->aPhysToVirt[iPage].Core.Key, GCPhysGst, iPage, GCPtr, R3STRING(pVirt->pszDesc)));
    13041304            pState->cErrors++;
    13051305            continue;
     
    13101310        {
    13111311            AssertMsgFailed(("virt handler getting ram flags. GCPhysGst=%VGp iPage=%#x %VGv %s\n",
    1312                              GCPhysGst, iPage, GCPtr, HCSTRING(pVirt->pszDesc)));
     1312                             GCPhysGst, iPage, GCPtr, R3STRING(pVirt->pszDesc)));
    13131313            pState->cErrors++;
    13141314            continue;
     
    13181318        {
    13191319            AssertMsgFailed(("virt handler state mismatch. HCPhys=%VHp GCPhysGst=%VGp iPage=%#x %VGv state=%d expected>=%d %s\n",
    1320                              pPage->HCPhys, GCPhysGst, iPage, GCPtr, PGM_PAGE_GET_HNDL_VIRT_STATE(pPage), uState, HCSTRING(pVirt->pszDesc)));
     1320                             pPage->HCPhys, GCPhysGst, iPage, GCPtr, PGM_PAGE_GET_HNDL_VIRT_STATE(pPage), uState, R3STRING(pVirt->pszDesc)));
    13211321            pState->cErrors++;
    13221322            continue;
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r11155 r11309  
    389389        TMTIMERSTATE enmState = pTimer->enmState;
    390390        Log2(("TMTimerDestroy: pTimer=%p:{.enmState=%s, .pszDesc='%s'} cRetries=%d\n",
    391               pTimer, tmTimerState(enmState), HCSTRING(pTimer->pszDesc), cRetries));
     391              pTimer, tmTimerState(enmState), R3STRING(pTimer->pszDesc), cRetries));
    392392        switch (enmState)
    393393        {
     
    395395                if (!VM_IS_EMT(pTimer->CTXALLSUFF(pVM)))
    396396                {
    397                     AssertMsgFailed(("Attempted timer destruction from other thread while expire pending! (%s)\n", HCSTRING(pTimer->pszDesc)));
     397                    AssertMsgFailed(("Attempted timer destruction from other thread while expire pending! (%s)\n", R3STRING(pTimer->pszDesc)));
    398398                    return VERR_INVALID_PARAMETER;
    399399                }
     
    426426            case TMTIMERSTATE_PENDING_DESTROY:
    427427            case TMTIMERSTATE_PENDING_STOP_DESTROY:
    428                 AssertMsgFailed(("How many times do you think you can destroy the same timer... (%s)\n", HCSTRING(pTimer->pszDesc)));
     428                AssertMsgFailed(("How many times do you think you can destroy the same timer... (%s)\n", R3STRING(pTimer->pszDesc)));
    429429                return VERR_INVALID_PARAMETER;
    430430
     
    457457             */
    458458            case TMTIMERSTATE_FREE:
    459                 AssertMsgFailed(("Invalid timer state %d (%s)\n", enmState, HCSTRING(pTimer->pszDesc)));
     459                AssertMsgFailed(("Invalid timer state %d (%s)\n", enmState, R3STRING(pTimer->pszDesc)));
    460460                return VERR_TM_INVALID_STATE;
    461461            default:
    462                 AssertMsgFailed(("Unknown timer state %d (%s)\n", enmState, HCSTRING(pTimer->pszDesc)));
     462                AssertMsgFailed(("Unknown timer state %d (%s)\n", enmState, R3STRING(pTimer->pszDesc)));
    463463                return VERR_TM_UNKNOWN_STATE;
    464464        }
    465465    } while (cRetries-- > 0);
    466466
    467     AssertMsgFailed(("Failed waiting for stable state. state=%d (%s)\n", pTimer->enmState, HCSTRING(pTimer->pszDesc)));
     467    AssertMsgFailed(("Failed waiting for stable state. state=%d (%s)\n", pTimer->enmState, R3STRING(pTimer->pszDesc)));
    468468    return VERR_INTERNAL_ERROR;
    469469}
     
    490490        TMTIMERSTATE    enmState = pTimer->enmState;
    491491        Log2(("TMTimerSet: pTimer=%p:{.enmState=%s, .pszDesc='%s'} cRetries=%d u64Expire=%llu\n",
    492               pTimer, tmTimerState(enmState), HCSTRING(pTimer->pszDesc), cRetries, u64Expire));
     492              pTimer, tmTimerState(enmState), R3STRING(pTimer->pszDesc), cRetries, u64Expire));
    493493        switch (enmState)
    494494        {
     
    566566            case TMTIMERSTATE_PENDING_STOP_DESTROY:
    567567            case TMTIMERSTATE_FREE:
    568                 AssertMsgFailed(("Invalid timer state %d (%s)\n", enmState, HCSTRING(pTimer->pszDesc)));
     568                AssertMsgFailed(("Invalid timer state %d (%s)\n", enmState, R3STRING(pTimer->pszDesc)));
    569569                return VERR_TM_INVALID_STATE;
    570570            default:
    571                 AssertMsgFailed(("Unknown timer state %d (%s)\n", enmState, HCSTRING(pTimer->pszDesc)));
     571                AssertMsgFailed(("Unknown timer state %d (%s)\n", enmState, R3STRING(pTimer->pszDesc)));
    572572                return VERR_TM_UNKNOWN_STATE;
    573573        }
    574574    } while (cRetries-- > 0);
    575575
    576     AssertMsgFailed(("Failed waiting for stable state. state=%d (%s)\n", pTimer->enmState, HCSTRING(pTimer->pszDesc)));
     576    AssertMsgFailed(("Failed waiting for stable state. state=%d (%s)\n", pTimer->enmState, R3STRING(pTimer->pszDesc)));
    577577    STAM_PROFILE_STOP(&pTimer->CTXALLSUFF(pVM)->tm.s.CTXALLSUFF(StatTimerSet), a);
    578578    return VERR_INTERNAL_ERROR;
     
    696696        TMTIMERSTATE    enmState = pTimer->enmState;
    697697        Log2(("TMTimerStop: pTimer=%p:{.enmState=%s, .pszDesc='%s'} cRetries=%d\n",
    698               pTimer, tmTimerState(enmState), HCSTRING(pTimer->pszDesc), cRetries));
     698              pTimer, tmTimerState(enmState), R3STRING(pTimer->pszDesc), cRetries));
    699699        switch (enmState)
    700700        {
     
    753753            case TMTIMERSTATE_PENDING_STOP_DESTROY:
    754754            case TMTIMERSTATE_FREE:
    755                 AssertMsgFailed(("Invalid timer state %d (%s)\n", enmState, HCSTRING(pTimer->pszDesc)));
     755                AssertMsgFailed(("Invalid timer state %d (%s)\n", enmState, R3STRING(pTimer->pszDesc)));
    756756                return VERR_TM_INVALID_STATE;
    757757            default:
    758                 AssertMsgFailed(("Unknown timer state %d (%s)\n", enmState, HCSTRING(pTimer->pszDesc)));
     758                AssertMsgFailed(("Unknown timer state %d (%s)\n", enmState, R3STRING(pTimer->pszDesc)));
    759759                return VERR_TM_UNKNOWN_STATE;
    760760        }
    761761    } while (cRetries-- > 0);
    762762
    763     AssertMsgFailed(("Failed waiting for stable state. state=%d (%s)\n", pTimer->enmState, HCSTRING(pTimer->pszDesc)));
     763    AssertMsgFailed(("Failed waiting for stable state. state=%d (%s)\n", pTimer->enmState, R3STRING(pTimer->pszDesc)));
    764764    STAM_PROFILE_STOP(&pTimer->CTXALLSUFF(pVM)->tm.s.CTXALLSUFF(StatTimerStop), a);
    765765    return VERR_INTERNAL_ERROR;
     
    798798    }
    799799    //Log2(("TMTimerGet: returns %llu (pTimer=%p:{.enmState=%s, .pszDesc='%s'})\n",
    800     //      u64, pTimer, tmTimerState(pTimer->enmState), HCSTRING(pTimer->pszDesc)));
     800    //      u64, pTimer, tmTimerState(pTimer->enmState), R3STRING(pTimer->pszDesc)));
    801801    return u64;
    802802}
     
    10811081            case TMTIMERSTATE_PENDING_STOP_SCHEDULE:
    10821082                Log2(("TMTimerGetExpire: returns ~0 (pTimer=%p:{.enmState=%s, .pszDesc='%s'})\n",
    1083                       pTimer, tmTimerState(pTimer->enmState), HCSTRING(pTimer->pszDesc)));
     1083                      pTimer, tmTimerState(pTimer->enmState), R3STRING(pTimer->pszDesc)));
    10841084                return ~(uint64_t)0;
    10851085
     
    10881088            case TMTIMERSTATE_PENDING_SCHEDULE:
    10891089                Log2(("TMTimerGetExpire: returns %llu (pTimer=%p:{.enmState=%s, .pszDesc='%s'})\n",
    1090                       pTimer->u64Expire, pTimer, tmTimerState(pTimer->enmState), HCSTRING(pTimer->pszDesc)));
     1090                      pTimer->u64Expire, pTimer, tmTimerState(pTimer->enmState), R3STRING(pTimer->pszDesc)));
    10911091                return pTimer->u64Expire;
    10921092
     
    11051105            case TMTIMERSTATE_PENDING_STOP_DESTROY:
    11061106            case TMTIMERSTATE_FREE:
    1107                 AssertMsgFailed(("Invalid timer state %d (%s)\n", enmState, HCSTRING(pTimer->pszDesc)));
     1107                AssertMsgFailed(("Invalid timer state %d (%s)\n", enmState, R3STRING(pTimer->pszDesc)));
    11081108                Log2(("TMTimerGetExpire: returns ~0 (pTimer=%p:{.enmState=%s, .pszDesc='%s'})\n",
    1109                       pTimer, tmTimerState(pTimer->enmState), HCSTRING(pTimer->pszDesc)));
     1109                      pTimer, tmTimerState(pTimer->enmState), R3STRING(pTimer->pszDesc)));
    11101110                return ~(uint64_t)0;
    11111111            default:
    1112                 AssertMsgFailed(("Unknown timer state %d (%s)\n", enmState, HCSTRING(pTimer->pszDesc)));
     1112                AssertMsgFailed(("Unknown timer state %d (%s)\n", enmState, R3STRING(pTimer->pszDesc)));
    11131113                return ~(uint64_t)0;
    11141114        }
    11151115    } while (cRetries-- > 0);
    11161116
    1117     AssertMsgFailed(("Failed waiting for stable state. state=%d (%s)\n", pTimer->enmState, HCSTRING(pTimer->pszDesc)));
     1117    AssertMsgFailed(("Failed waiting for stable state. state=%d (%s)\n", pTimer->enmState, R3STRING(pTimer->pszDesc)));
    11181118    Log2(("TMTimerGetExpire: returns ~0 (pTimer=%p:{.enmState=%s, .pszDesc='%s'})\n",
    1119           pTimer, tmTimerState(pTimer->enmState), HCSTRING(pTimer->pszDesc)));
     1119          pTimer, tmTimerState(pTimer->enmState), R3STRING(pTimer->pszDesc)));
    11201120    return ~(uint64_t)0;
    11211121}
     
    11391139        case TMTIMERSTATE_PENDING_STOP_SCHEDULE:
    11401140            Log2(("TMTimerIsActive: returns false (pTimer=%p:{.enmState=%s, .pszDesc='%s'})\n",
    1141                   pTimer, tmTimerState(pTimer->enmState), HCSTRING(pTimer->pszDesc)));
     1141                  pTimer, tmTimerState(pTimer->enmState), R3STRING(pTimer->pszDesc)));
    11421142            return false;
    11431143
     
    11481148        case TMTIMERSTATE_PENDING_RESCHEDULE_SET_EXPIRE:
    11491149            Log2(("TMTimerIsActive: returns true (pTimer=%p:{.enmState=%s, .pszDesc='%s'})\n",
    1150                   pTimer, tmTimerState(pTimer->enmState), HCSTRING(pTimer->pszDesc)));
     1150                  pTimer, tmTimerState(pTimer->enmState), R3STRING(pTimer->pszDesc)));
    11511151            return true;
    11521152
     
    11571157        case TMTIMERSTATE_PENDING_STOP_DESTROY:
    11581158        case TMTIMERSTATE_FREE:
    1159             AssertMsgFailed(("Invalid timer state %s (%s)\n", tmTimerState(enmState), HCSTRING(pTimer->pszDesc)));
     1159            AssertMsgFailed(("Invalid timer state %s (%s)\n", tmTimerState(enmState), R3STRING(pTimer->pszDesc)));
    11601160            Log2(("TMTimerIsActive: returns false (pTimer=%p:{.enmState=%s, .pszDesc='%s'})\n",
    1161                   pTimer, tmTimerState(pTimer->enmState), HCSTRING(pTimer->pszDesc)));
     1161                  pTimer, tmTimerState(pTimer->enmState), R3STRING(pTimer->pszDesc)));
    11621162            return false;
    11631163        default:
    1164             AssertMsgFailed(("Unknown timer state %d (%s)\n", enmState, HCSTRING(pTimer->pszDesc)));
     1164            AssertMsgFailed(("Unknown timer state %d (%s)\n", enmState, R3STRING(pTimer->pszDesc)));
    11651165            return false;
    11661166    }
     
    14241424         */
    14251425        Log2(("tmTimerQueueSchedule: pTimer=%p:{.enmState=%s, .enmClock=%d, .enmType=%d, .pszDesc=%s}\n",
    1426               pTimer, tmTimerState(pTimer->enmState), pTimer->enmClock, pTimer->enmType, HCSTRING(pTimer->pszDesc)));
     1426              pTimer, tmTimerState(pTimer->enmState), pTimer->enmClock, pTimer->enmType, R3STRING(pTimer->pszDesc)));
    14271427        tmTimerQueueScheduleOne(pQueue, pTimer);
    14281428        Log2(("tmTimerQueueSchedule: new %s\n", tmTimerState(pTimer->enmState)));
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