third_party/virtualbox/src/VBox/VMM/VMMR3/VM.cpp
/**
 * Do init completed notifications.
 *
 * @returns VBox status code.
 * @param   pVM         The cross context VM structure.
 * @param   enmWhat     What's completed.
 */
Do init completed notifications.
@returns VBox status code.
@param   pVM         The cross context VM structure.
@param   enmWhat     What's completed.
Do init completed notifications . @returns VBox status code . @param pVM The cross context VM structure . @param enmWhat What ' s completed .
static int vmR3InitDoCompleted(PVM pVM, VMINITCOMPLETED enmWhat)
{
    int rc = VMMR3InitCompleted(pVM, enmWhat);
    if (RT_SUCCESS(rc))
        rc = HMR3InitCompleted(pVM, enmWhat);
    if (RT_SUCCESS(rc))
        rc = PGMR3InitCompleted(pVM, enmWhat);
    if (RT_SUCCESS(rc))
        rc = CPUMR3InitCompleted(pVM, enmWhat);
    if (enmWhat == VMINITCOMPLETED_RING3)
    {
#ifndef VBOX_WITH_RAW_MODE
        if (RT_SUCCESS(rc))
            rc = SSMR3RegisterStub(pVM, "CSAM", 0);
        if (RT_SUCCESS(rc))
            rc = SSMR3RegisterStub(pVM, "PATM", 0);
#endif
#ifndef VBOX_WITH_REM
        if (RT_SUCCESS(rc))
            rc = SSMR3RegisterStub(pVM, "rem", 1);
#endif
    }
    if (RT_SUCCESS(rc))
        rc = PDMR3InitCompleted(pVM, enmWhat);
    return rc;
}
static int vmR3InitDoCompleted ( PVM pVM , VMINITCOMPLETED enmWhat ) { int rc = VMMR3InitCompleted ( pVM , enmWhat ) ; if ( RT_SUCCESS ( rc ) ) rc = HMR3InitCompleted ( pVM , enmWhat ) ; if ( RT_SUCCESS ( rc ) ) rc = PGMR3InitCompleted ( pVM , enmWhat ) ; if ( RT_SUCCESS ( rc ) ) rc = CPUMR3InitCompleted ( pVM , enmWhat ) ; if ( enmWhat == VMINITCOMPLETED_RING3 ) { #ifndef VBOX_WITH_RAW_MODE if ( RT_SUCCESS ( rc ) ) rc = SSMR3RegisterStub ( pVM , " " , 0 ) ; if ( RT_SUCCESS ( rc ) ) rc = SSMR3RegisterStub ( pVM , " " , 0 ) ; #endif #ifndef VBOX_WITH_REM if ( RT_SUCCESS ( rc ) ) rc = SSMR3RegisterStub ( pVM , " " , 1 ) ; #endif } if ( RT_SUCCESS ( rc ) ) rc = PDMR3InitCompleted ( pVM , enmWhat ) ; return rc ; }
Do init completed notifications.
Do init completed notifications .