Changeset 39405 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Nov 23, 2011 7:30:29 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 75023
- File:
-
- 1 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);
Note:
See TracChangeset
for help on using the changeset viewer.