VirtualBox

Changeset 39405 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Nov 23, 2011 7:30:29 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75023
Message:

VMM: Don't use generic IPE status codes, use specific ones. Part 2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r39402 r39405  
    873873
    874874    /* 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);
    880876
    881877    void    *pvCpuPage     = RTR0MemObjAddress(pCpu->hMemObj);
     
    14771473    /* Keep track of the CPU owning the VMCS for debugging scheduling weirdness
    14781474       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);
    14871479    pVCpu->hwaccm.s.idEnteredCpu = NIL_RTCPUID;
    14881480
     
    17131705
    17141706        default:
    1715             AssertFailed();
    1716             return VERR_INTERNAL_ERROR;
     1707            AssertFailedReturn(VERR_HM_WRONG_SWITCHER);
    17171708    }
    17181709
    17191710    PHMGLOBLCPUINFO pCpu = HWACCMR0GetCurrentCpu();
    1720     AssertReturn(pCpu && pCpu->hMemObj != NIL_RTR0MEMOBJ, VERR_INTERNAL_ERROR);
     1711    AssertReturn(pCpu && pCpu->hMemObj != NIL_RTR0MEMOBJ, VERR_HM_IPE_2);
    17211712
    17221713    *pfVTxDisabled = true;
     
    17471738
    17481739    PHMGLOBLCPUINFO pCpu = HWACCMR0GetCurrentCpu();
    1749     AssertReturn(pCpu && pCpu->hMemObj != NIL_RTR0MEMOBJ, VERR_INTERNAL_ERROR);
     1740    AssertReturn(pCpu && pCpu->hMemObj != NIL_RTR0MEMOBJ, VERR_HM_IPE_2);
    17501741
    17511742    void           *pvCpuPage     = RTR0MemObjAddress(pCpu->hMemObj);
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