VirtualBox

Changeset 55754 in vbox


Ignore:
Timestamp:
May 8, 2015 2:09:00 PM (9 years ago)
Author:
vboxsync
Message:

VMM/HM: Avoid some fatal assertions in places that can fail.

File:
1 edited

Legend:

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

    r55436 r55754  
    752752            Assert(RT_SUCCESS(rc) || rc == VERR_NOT_SUPPORTED);
    753753            if (RT_SUCCESS(rc))
    754             {
    755754                rc = hmR0FirstRcGetStatus(&FirstRc);
    756                 AssertMsgRC(rc, ("%u: %Rrc\n", hmR0FirstRcGetCpuId(&FirstRc), rc));
    757             }
    758755        }
    759756
     
    860857            rc = g_HvmR0.pfnEnableCpu(pCpu, pVM, pvCpuPage, HCPhysCpuPage, false, NULL /* pvArg */);
    861858    }
    862     AssertRC(rc);
    863859    if (RT_SUCCESS(rc))
    864860        pCpu->fConfigured = true;
     
    968964        if (RT_SUCCESS(rc))
    969965            rc = hmR0FirstRcGetStatus(&FirstRc);
    970         AssertMsgRC(rc, ("hmR0EnableAllCpuOnce failed for cpu %d with rc=%d\n", hmR0FirstRcGetCpuId(&FirstRc), rc));
    971966    }
    972967
     
    12221217
    12231218    /*
    1224      * Initialize some per CPU fields.
     1219     * Initialize some per-VCPU fields.
    12251220     */
    12261221    for (VMCPUID i = 0; i < pVM->cCpus; i++)
     
    12981293    {
    12991294        rc = hmR0EnableCpu(pVM, idCpu);
    1300         AssertRCReturnStmt(rc, RTThreadPreemptRestore(&PreemptState), rc);
     1295        if (RT_FAILURE(rc))
     1296        {
     1297            RTThreadPreemptRestore(&PreemptState)
     1298            return rc;
     1299        }
    13011300    }
    13021301
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