- Timestamp:
- Nov 23, 2011 7:30:29 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 75023
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r39402 r39405 873 873 874 874 /* Should never happen */ 875 if (pCpu->hMemObj == NIL_RTR0MEMOBJ) 876 { 877 AssertLogRelMsgFailed(("hmR0EnableCpu failed idCpu=%u.\n", idCpu)); 878 return VERR_INTERNAL_ERROR; 879 } 875 AssertLogRelMsgReturn(pCpu->hMemObj != NIL_RTR0MEMOBJ, ("hmR0EnableCpu failed idCpu=%u.\n", idCpu), VERR_HM_IPE_1); 880 876 881 877 void *pvCpuPage = RTR0MemObjAddress(pCpu->hMemObj); … … 1477 1473 /* Keep track of the CPU owning the VMCS for debugging scheduling weirdness 1478 1474 and ring-3 calls. */ 1479 #ifdef RT_STRICT 1480 if (RT_UNLIKELY( pVCpu->hwaccm.s.idEnteredCpu != idCpu 1481 && RT_FAILURE(rc))) 1482 { 1483 AssertMsgFailed(("Owner is %d, I'm %d", (int)pVCpu->hwaccm.s.idEnteredCpu, (int)idCpu)); 1484 rc = VERR_INTERNAL_ERROR; 1485 } 1486 #endif 1475 AssertMsgStmt( pVCpu->hwaccm.s.idEnteredCpu == idCpu 1476 || RT_FAILURE_NP(rc), 1477 ("Owner is %u, I'm %u", pVCpu->hwaccm.s.idEnteredCpu, idCpu), 1478 rc = VERR_HM_WRONG_CPU_1); 1487 1479 pVCpu->hwaccm.s.idEnteredCpu = NIL_RTCPUID; 1488 1480 … … 1713 1705 1714 1706 default: 1715 AssertFailed(); 1716 return VERR_INTERNAL_ERROR; 1707 AssertFailedReturn(VERR_HM_WRONG_SWITCHER); 1717 1708 } 1718 1709 1719 1710 PHMGLOBLCPUINFO pCpu = HWACCMR0GetCurrentCpu(); 1720 AssertReturn(pCpu && pCpu->hMemObj != NIL_RTR0MEMOBJ, VERR_ INTERNAL_ERROR);1711 AssertReturn(pCpu && pCpu->hMemObj != NIL_RTR0MEMOBJ, VERR_HM_IPE_2); 1721 1712 1722 1713 *pfVTxDisabled = true; … … 1747 1738 1748 1739 PHMGLOBLCPUINFO pCpu = HWACCMR0GetCurrentCpu(); 1749 AssertReturn(pCpu && pCpu->hMemObj != NIL_RTR0MEMOBJ, VERR_ INTERNAL_ERROR);1740 AssertReturn(pCpu && pCpu->hMemObj != NIL_RTR0MEMOBJ, VERR_HM_IPE_2); 1750 1741 1751 1742 void *pvCpuPage = RTR0MemObjAddress(pCpu->hMemObj); -
trunk/src/VBox/VMM/VMMR3/CFGM.cpp
r36819 r39405 556 556 557 557 default: 558 rc = VERR_ INTERNAL_ERROR;558 rc = VERR_CFGM_IPE_1; 559 559 AssertMsgFailed(("Invalid value type %d\n", pLeaf->enmType)); 560 560 break; -
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r39078 r39405 392 392 * completely overridden by VirtualBox custom strings. Some 393 393 * CPUID information is withheld, like the cache info. */ 394 rc = CFGMR3QueryBoolDef(pCpumCfg, "SyntheticCpu", &pCPUM->fSyntheticCpu, 394 rc = CFGMR3QueryBoolDef(pCpumCfg, "SyntheticCpu", &pCPUM->fSyntheticCpu, false); 395 395 AssertRCReturn(rc, rc); 396 396 … … 403 403 AssertRCReturn(rc, rc); 404 404 405 AssertLogRelReturn(!pCPUM->fSyntheticCpu || !pCPUM->u8PortableCpuIdLevel, VERR_ INTERNAL_ERROR_2);405 AssertLogRelReturn(!pCPUM->fSyntheticCpu || !pCPUM->u8PortableCpuIdLevel, VERR_CPUM_INCOMPATIBLE_CONFIG); 406 406 407 407 /* … … 1909 1909 static DECLCALLBACK(int) cpumR3LiveExec(PVM pVM, PSSMHANDLE pSSM, uint32_t uPass) 1910 1910 { 1911 AssertReturn(uPass == 0, VERR_ INTERNAL_ERROR_4);1911 AssertReturn(uPass == 0, VERR_SSM_UNEXPECTED_PASS); 1912 1912 cpumR3SaveCpuId(pVM, pSSM); 1913 1913 return VINF_SSM_DONT_CALL_AGAIN; -
trunk/src/VBox/VMM/VMMR3/CPUMDbg.cpp
r39078 r39405 51 51 case DBGFREGVALTYPE_U128: pValue->u128 = *(PCRTUINT128U )pv; return VINF_SUCCESS; 52 52 default: 53 AssertMsgFailedReturn(("%d %s\n", pDesc->enmType, pDesc->pszName), VERR_I NTERNAL_ERROR_3);53 AssertMsgFailedReturn(("%d %s\n", pDesc->enmType, pDesc->pszName), VERR_IPE_NOT_REACHED_DEFAULT_CASE); 54 54 } 55 55 } … … 97 97 98 98 default: 99 AssertMsgFailedReturn(("%d %s\n", pDesc->enmType, pDesc->pszName), VERR_I NTERNAL_ERROR_3);99 AssertMsgFailedReturn(("%d %s\n", pDesc->enmType, pDesc->pszName), VERR_IPE_NOT_REACHED_DEFAULT_CASE); 100 100 } 101 101 } … … 280 280 case DBGFREGVALTYPE_U32: pValue->u32 = (uint32_t)u64Value; break; 281 281 default: 282 AssertFailedReturn(VERR_I NTERNAL_ERROR_4);282 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 283 283 } 284 284 return VINF_SUCCESS; … … 314 314 fMaskMax = UINT32_MAX; 315 315 break; 316 default: AssertFailedReturn(VERR_INTERNAL_ERROR_4); 316 default: 317 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 317 318 } 318 319 if (fMask != fMaskMax) … … 337 338 case 8: rc = PDMApicSetTPR(pVCpu, (uint8_t)(u64Value << 4)); break; 338 339 default: 339 AssertFailedReturn(VERR_I NTERNAL_ERROR_2);340 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 340 341 } 341 342 return rc; … … 359 360 case DBGFREGVALTYPE_U32: pValue->u32 = (uint32_t)u64Value; break; 360 361 default: 361 AssertFailedReturn(VERR_I NTERNAL_ERROR_4);362 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 362 363 } 363 364 return VINF_SUCCESS; … … 393 394 fMaskMax = UINT32_MAX; 394 395 break; 395 default: AssertFailedReturn(VERR_INTERNAL_ERROR_4); 396 default: 397 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 396 398 } 397 399 if (fMask != fMaskMax) … … 430 432 case DBGFREGVALTYPE_U16: pValue->u16 = (uint16_t)u64Value; break; 431 433 default: 432 AssertFailedReturn(VERR_I NTERNAL_ERROR_4);434 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 433 435 } 434 436 } … … 471 473 fMaskMax = UINT16_MAX; 472 474 break; 473 default: AssertFailedReturn(VERR_INTERNAL_ERROR_4); 475 default: 476 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 474 477 } 475 478 if (fMask != fMaskMax) … … 555 558 case 8: u64Value = UINT64_MAX; break; 556 559 default: 557 AssertFailedReturn(VERR_I NTERNAL_ERROR_3);560 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 558 561 } 559 562 switch (pDesc->enmType) … … 562 565 case DBGFREGVALTYPE_U32: pValue->u32 = (uint32_t)u64Value; break; 563 566 default: 564 AssertFailedReturn(VERR_I NTERNAL_ERROR_4);567 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 565 568 } 566 569 return VINF_SUCCESS; … … 597 600 case 7: u64Value = CPUMGetHyperDR7(pVCpu); break; 598 601 default: 599 AssertFailedReturn(VERR_I NTERNAL_ERROR_3);602 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 600 603 } 601 604 switch (pDesc->enmType) … … 604 607 case DBGFREGVALTYPE_U32: pValue->u32 = (uint32_t)u64Value; break; 605 608 default: 606 AssertFailedReturn(VERR_I NTERNAL_ERROR_4);609 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 607 610 } 608 611 return VINF_SUCCESS; … … 636 639 case DBGFREGVALTYPE_U16: pValue->u16 = (uint16_t)u64Value; break; 637 640 default: 638 AssertFailedReturn(VERR_I NTERNAL_ERROR_4);641 AssertFailedReturn(VERR_IPE_NOT_REACHED_DEFAULT_CASE); 639 642 } 640 643 return VINF_SUCCESS; -
trunk/src/VBox/VMM/VMMR3/DBGFBp.cpp
r38838 r39405 746 746 747 747 default: 748 AssertMsgFailed(("Invalid enmType=%d!\n", pBp->enmType)); 749 return VERR_INTERNAL_ERROR; 748 AssertMsgFailedReturn(("Invalid enmType=%d!\n", pBp->enmType), VERR_IPE_NOT_REACHED_DEFAULT_CASE); 750 749 } 751 750 AssertRCReturn(rc, rc); … … 823 822 824 823 default: 825 AssertMsgFailed(("Invalid enmType=%d!\n", pBp->enmType)); 826 return VERR_INTERNAL_ERROR; 824 AssertMsgFailedReturn(("Invalid enmType=%d!\n", pBp->enmType), VERR_IPE_NOT_REACHED_DEFAULT_CASE); 827 825 } 828 826 if (RT_FAILURE(rc)) … … 896 894 897 895 default: 898 AssertMsgFailed(("Invalid enmType=%d!\n", pBp->enmType)); 899 return VERR_INTERNAL_ERROR; 896 AssertMsgFailedReturn(("Invalid enmType=%d!\n", pBp->enmType), VERR_IPE_NOT_REACHED_DEFAULT_CASE); 900 897 } 901 898 -
trunk/src/VBox/VMM/VMMR3/DBGFInfo.cpp
r39078 r39405 772 772 773 773 default: 774 AssertMsgFailed(("Invalid info type enmType=%d\n", Info.enmType)); 775 rc = VERR_INTERNAL_ERROR; 776 break; 774 AssertMsgFailedReturn(("Invalid info type enmType=%d\n", Info.enmType), VERR_IPE_NOT_REACHED_DEFAULT_CASE); 777 775 } 778 776 } … … 931 929 932 930 default: 933 AssertMsgFailed(("Invalid info type enmType=%d\n", pInfo->enmType)); 934 rc = VERR_INTERNAL_ERROR; 935 break; 931 AssertMsgFailedReturn(("Invalid info type enmType=%d\n", pInfo->enmType), VERR_IPE_NOT_REACHED_DEFAULT_CASE); 936 932 } 937 933 } -
trunk/src/VBox/VMM/VMMR3/DBGFR3Trace.cpp
r39078 r39405 78 78 if (rc != VERR_BUFFER_OVERFLOW) 79 79 { 80 AssertReturn(!RT_SUCCESS_NP(rc), VERR_I NTERNAL_ERROR_4);80 AssertReturn(!RT_SUCCESS_NP(rc), VERR_IPE_UNEXPECTED_INFO_STATUS); 81 81 return rc; 82 82 } -
trunk/src/VBox/VMM/VMMR3/DBGFReg.cpp
r39078 r39405 1045 1045 break; 1046 1046 default: 1047 AssertMsgFailedReturn(("%s %d\n", pDesc->pszName, pDesc->enmType), VERR_I NTERNAL_ERROR_3);1047 AssertMsgFailedReturn(("%s %d\n", pDesc->pszName, pDesc->enmType), VERR_IPE_NOT_REACHED_DEFAULT_CASE); 1048 1048 } 1049 1049 } … … 1873 1873 ssize_t cch = RTStrFormatU64(pszTmp, cbTmp, pValue->dtr.u64Base, 1874 1874 16, 2+16, 0, RTSTR_F_SPECIAL | RTSTR_F_ZEROPAD); 1875 AssertReturn(cch > 0, VERR_ INTERNAL_ERROR_4);1875 AssertReturn(cch > 0, VERR_DBGF_REG_IPE_1); 1876 1876 pszTmp[cch++] = ':'; 1877 1877 cch += RTStrFormatU64(&pszTmp[cch], cbTmp - cch, pValue->dtr.u32Limit, … … 1888 1888 1889 1889 RTStrPrintf(pszTmp, cbTmp, "!enmType=%d!", enmType); 1890 return VERR_ INTERNAL_ERROR_5;1890 return VERR_DBGF_REG_IPE_2; 1891 1891 } 1892 1892 -
trunk/src/VBox/VMM/VMMR3/DBGFStack.cpp
r38838 r39405 181 181 case 4: pFrame->AddrReturnFrame.off = *uBp.pu32; break; 182 182 case 8: pFrame->AddrReturnFrame.off = *uBp.pu64; break; 183 default: AssertMsgFailed (("cbStackItem=%d\n", cbStackItem)); return VERR_INTERNAL_ERROR;183 default: AssertMsgFailedReturn(("cbStackItem=%d\n", cbStackItem), VERR_DBGF_STACK_IPE_1); 184 184 } 185 185 pFrame->AddrReturnFrame.FlatPtr += pFrame->AddrReturnFrame.off - pFrame->AddrFrame.off; … … 263 263 case 4: pFrame->fFlags |= DBGFSTACKFRAME_FLAGS_32BIT; break; 264 264 case 8: pFrame->fFlags |= DBGFSTACKFRAME_FLAGS_64BIT; break; 265 default: AssertMsgFailed (("cbStackItem=%d\n", cbStackItem)); return VERR_INTERNAL_ERROR;265 default: AssertMsgFailedReturn(("cbStackItem=%d\n", cbStackItem), VERR_DBGF_STACK_IPE_2); 266 266 } 267 267 -
trunk/src/VBox/VMM/VMMR3/EMHwaccm.cpp
r39078 r39405 307 307 } 308 308 AssertMsgReturn(rcStrict == VERR_NOT_FOUND, ("%Rrc\n", VBOXSTRICTRC_VAL(rcStrict)), 309 RT_SUCCESS_NP(rcStrict) ? VERR_I NTERNAL_ERROR_5: VBOXSTRICTRC_TODO(rcStrict));309 RT_SUCCESS_NP(rcStrict) ? VERR_IPE_UNEXPECTED_INFO_STATUS : VBOXSTRICTRC_TODO(rcStrict)); 310 310 311 311 /** @todo probably we should fall back to the recompiler; otherwise we'll go back and forth between HC & GC … … 477 477 int emR3HwAccExecute(PVM pVM, PVMCPU pVCpu, bool *pfFFDone) 478 478 { 479 int rc = VERR_I NTERNAL_ERROR;479 int rc = VERR_IPE_UNINITIALIZED_STATUS; 480 480 PCPUMCTX pCtx = pVCpu->em.s.pCtx; 481 481 -
trunk/src/VBox/VMM/VMMR3/EMRaw.cpp
r39070 r39405 1383 1383 STAM_REL_PROFILE_ADV_START(&pVCpu->em.s.StatRAWTotal, a); 1384 1384 1385 int rc = VERR_I NTERNAL_ERROR;1385 int rc = VERR_IPE_UNINITIALIZED_STATUS; 1386 1386 PCPUMCTX pCtx = pVCpu->em.s.pCtx; 1387 1387 LogFlow(("emR3RawExecute: (cs:eip=%04x:%08x)\n", pCtx->cs, pCtx->eip)); … … 1414 1414 PGMMapCheck(pVM); 1415 1415 AssertMsgFailed(("We should not get conflicts any longer!!!\n")); 1416 return VERR_ INTERNAL_ERROR;1416 return VERR_EM_UNEXPECTED_MAPPING_CONFLICT; 1417 1417 } 1418 1418 #endif /* VBOX_STRICT */ … … 1549 1549 PGMMapCheck(pVM); 1550 1550 AssertMsgFailed(("We should not get conflicts any longer!!! rc=%Rrc\n", rc)); 1551 return VERR_ INTERNAL_ERROR;1551 return VERR_EM_UNEXPECTED_MAPPING_CONFLICT; 1552 1552 } 1553 1553 #endif /* VBOX_STRICT */ -
trunk/src/VBox/VMM/VMMR3/GMM.cpp
r35346 r39405 211 211 if (cActualPages != pReq->cPages) 212 212 { 213 AssertReturn(cActualPages < pReq->cPages, VERR_ INTERNAL_ERROR);213 AssertReturn(cActualPages < pReq->cPages, VERR_GMM_ACTUAL_PAGES_IPE); 214 214 if (!cActualPages) 215 215 return VINF_SUCCESS; -
trunk/src/VBox/VMM/VMMR3/HWACCM.cpp
r39402 r39405 2561 2561 2562 2562 default: 2563 AssertLogRelFailedReturn(VERR_ INTERNAL_ERROR);2563 AssertLogRelFailedReturn(VERR_HM_UNKNOWN_IO_INSTRUCTION); 2564 2564 } 2565 2565 -
trunk/src/VBox/VMM/VMMRZ/DBGFRZ.cpp
r35346 r39405 95 95 96 96 LogFlow(("DBGFRZTrap01Handler: guest debug event %RTreg at %04x:%RGv!\n", uDr6, pRegFrame->cs, pRegFrame->rip)); 97 return fInHyper ? VERR_ INTERNAL_ERROR: VINF_EM_RAW_GUEST_TRAP;97 return fInHyper ? VERR_DBGF_HYPER_DB_XCPT : VINF_EM_RAW_GUEST_TRAP; 98 98 } 99 99
Note:
See TracChangeset
for help on using the changeset viewer.