VirtualBox

忽略:
時間撮記:
2011-11-23 下午04:25:04 (13 年 以前)
作者:
vboxsync
訊息:

VMM: don't use generic IPE status codes, use specific ones. Part 1.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r39294 r39402  
    116116                }
    117117            }
    118             else if (RT_UNLIKELY(rc == VERR_INTERNAL_ERROR))
     118            else if (RT_UNLIKELY(rc == VERR_EM_INTERNAL_DISAS_ERROR))
    119119                return rc;
    120120            break;
     
    135135            AssertMsgFailedReturn(("enmProt=%d iPage=%d GCPhysFault=%RGp\n",
    136136                                   pRom->aPages[iPage].enmProt, iPage, GCPhysFault),
    137                                   VERR_INTERNAL_ERROR);
     137                                  VERR_IPE_NOT_REACHED_DEFAULT_CASE);
    138138    }
    139139
     
    513513                            &&  pVM->pgm.s.cHandyPages <= RT_ELEMENTS(pVM->pgm.s.aHandyPages),
    514514                            ("%u\n", pVM->pgm.s.cHandyPages),
    515                             VERR_INTERNAL_ERROR);
     515                            VERR_PGM_HANDY_PAGE_IPE);
    516516        }
    517517        else
     
    10291029    if (idChunk == NIL_GMM_CHUNKID)
    10301030    {
    1031         AssertMsgReturn(PGM_PAGE_GET_PAGEID(pPage) == NIL_GMM_PAGEID, ("pPage=%R[pgmpage]\n", pPage), VERR_INTERNAL_ERROR_2);
     1031        AssertMsgReturn(PGM_PAGE_GET_PAGEID(pPage) == NIL_GMM_PAGEID, ("pPage=%R[pgmpage]\n", pPage), VERR_PGM_PHYS_PAGE_MAP_IPE_1);
    10321032        if (PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_MMIO2)
    10331033        {
    10341034            /* Lookup the MMIO2 range and use pvR3 to calc the address. */
    10351035            PPGMRAMRANGE pRam = pgmPhysGetRange(pVM, GCPhys);
    1036             AssertMsgReturn(pRam || !pRam->pvR3, ("pRam=%p pPage=%R[pgmpage]\n", pRam, pPage), VERR_INTERNAL_ERROR_2);
     1036            AssertMsgReturn(pRam || !pRam->pvR3, ("pRam=%p pPage=%R[pgmpage]\n", pRam, pPage), VERR_PGM_PHYS_PAGE_MAP_IPE_2);
    10371037            *ppv = (void *)((uintptr_t)pRam->pvR3 + (uintptr_t)((GCPhys & ~(RTGCPHYS)PAGE_OFFSET_MASK) - pRam->GCPhys));
    10381038        }
     
    10431043             * them, that would also avoid this mess. It would actually be kind of
    10441044             * elegant... */
    1045             AssertLogRelMsgFailedReturn(("%RGp\n", GCPhys), VERR_INTERNAL_ERROR_3);
     1045            AssertLogRelMsgFailedReturn(("%RGp\n", GCPhys), VERR_PGM_MAP_MMIO2_ALIAS_MMIO);
    10461046        }
    10471047        else
    10481048        {
    10491049            /** @todo handle MMIO2 */
    1050             AssertMsgReturn(PGM_PAGE_IS_ZERO(pPage), ("pPage=%R[pgmpage]\n", pPage), VERR_INTERNAL_ERROR_2);
     1050            AssertMsgReturn(PGM_PAGE_IS_ZERO(pPage), ("pPage=%R[pgmpage]\n", pPage), VERR_PGM_PHYS_PAGE_MAP_IPE_3);
    10511051            AssertMsgReturn(PGM_PAGE_GET_HCPHYS(pPage) == pVM->pgm.s.HCPhysZeroPg,
    10521052                            ("pPage=%R[pgmpage]\n", pPage),
    1053                             VERR_INTERNAL_ERROR_2);
     1053                            VERR_PGM_PHYS_PAGE_MAP_IPE_4);
    10541054            *ppv = pVM->pgm.s.CTXALLSUFF(pvZeroPg);
    10551055        }
     
    13061306{
    13071307    int rc;
    1308     AssertReturn(pPage, VERR_INTERNAL_ERROR);
     1308    AssertReturn(pPage, VERR_PGM_PHYS_NULL_PAGE_PARAM);
    13091309    PGM_LOCK_ASSERT_OWNER(pVM);
    13101310    pVM->pgm.s.cDeprecatedPageLocks++;
     
    14361436{
    14371437    int rc;
    1438     AssertReturn(pPage, VERR_INTERNAL_ERROR);
     1438    AssertReturn(pPage, VERR_PGM_PHYS_NULL_PAGE_PARAM);
    14391439    PGM_LOCK_ASSERT_OWNER(pVM);
    14401440
     
    14991499int pgmPhysGCPhys2CCPtrInternalReadOnly(PVM pVM, PPGMPAGE pPage, RTGCPHYS GCPhys, const void **ppv, PPGMPAGEMAPLOCK pLock)
    15001500{
    1501     AssertReturn(pPage, VERR_INTERNAL_ERROR);
     1501    AssertReturn(pPage, VERR_PGM_PHYS_NULL_PAGE_PARAM);
    15021502    PGM_LOCK_ASSERT_OWNER(pVM);
    15031503    Assert(PGM_PAGE_GET_HCPHYS(pPage) != 0);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette