VirtualBox

Changeset 105843 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Aug 23, 2024 9:01:50 AM (5 months ago)
Author:
vboxsync
Message:

VMM/NEMR3Native-darwin-armv8.cpp: Don't throw an error if the NEM based gic is not configured, bugref:10747

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp

    r105695 r105843  
    830830                        "vbar_el1=%016VR{vbar_el1}\n"
    831831                        );
    832         char szInstr[256]; RT_ZERO(szInstr);
    833 #if 0
    834         DBGFR3DisasInstrEx(pVM->pUVM, pVCpu->idCpu, 0, 0,
    835                            DBGF_DISAS_FLAGS_CURRENT_GUEST | DBGF_DISAS_FLAGS_DEFAULT_MODE,
    836                            szInstr, sizeof(szInstr), NULL);
    837 #endif
    838         Log3(("%s%s\n", szRegs, szInstr));
    839 
    840832        if (pVM->nem.s.fEl2Enabled)
    841833        {
     834            Log3(("%s\n", szRegs));
    842835            DBGFR3RegPrintf(pVM->pUVM, pVCpu->idCpu, &szRegs[0], sizeof(szRegs),
    843836                            "sp_el2=%016VR{sp_el2} elr_el2=%016VR{elr_el2}\n"
     
    850843                            );
    851844        }
    852         Log3(("%s%s\n", szRegs));
     845        char szInstr[256]; RT_ZERO(szInstr);
     846        DBGFR3DisasInstrEx(pVM->pUVM, pVCpu->idCpu, 0, 0,
     847                           DBGF_DISAS_FLAGS_CURRENT_GUEST | DBGF_DISAS_FLAGS_DEFAULT_MODE,
     848                           szInstr, sizeof(szInstr), NULL);
     849        Log3(("%s%s\n", szRegs, szInstr));
    853850    }
    854851}
     
    11741171    //PCFGMNODE pGicDev = CFGMR3GetChild(CFGMR3GetRoot(pVM), "Devices/gic/0");
    11751172    PCFGMNODE pGicCfg = CFGMR3GetChild(CFGMR3GetRoot(pVM), "Devices/gic-nem/0/Config");
     1173    AssertPtrReturn(pGicCfg, VERR_NEM_IPE_5);
    11761174
    11771175    hv_gic_config_t hGicCfg = hv_gic_config_create();
     
    14161414    AssertReturn(pVM->bMainExecutionEngine == VM_EXEC_ENGINE_NATIVE_API, VERR_WRONG_ORDER);
    14171415
    1418     /* Need to create the GIC here before any vCPU is created according to the Apple docs. */
    1419     if (hv_gic_create)
     1416    /*
     1417     * Need to create the GIC here if the NEM variant is configured
     1418     * before any vCPU is created according to the Apple docs.
     1419     */
     1420    if (   hv_gic_create
     1421        && CFGMR3GetChild(CFGMR3GetRoot(pVM), "Devices/gic-nem/0"))
    14201422    {
    14211423        int rc = nemR3DarwinGicCreate(pVM);
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