VirtualBox

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


Ignore:
Timestamp:
Oct 18, 2023 11:27:55 AM (15 months ago)
Author:
vboxsync
Message:

VMM,Main: Don't hardcode the vTimer interrupt number in the NEM backend but let the configuration constructor decide the value so it matches the FDT, bugref:10390 bugref:10528

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/NEMR3.cpp

    r99370 r101496  
    103103                                  "|VmxLbr"
    104104#endif
     105#if defined(VBOX_VMM_TARGET_ARMV8)
     106                                  "|VTimerInterrupt"
     107#endif
    105108                                  ,
    106109                                  "" /* pszValidNodes */, "NEM" /* pszWho */, 0 /* uInstance */);
     
    136139        pVCpu->nem.s.fTrapXcptGpForLovelyMesaDrv = f;
    137140    }
     141
     142#if defined(VBOX_VMM_TARGET_ARMV8)
     143    /** @cfgm{/NEM/VTimerInterrupt, uint32_t}
     144     * Specifies the interrupt identifier for the VTimer. */
     145    rc = CFGMR3QueryU32(pCfgNem, "VTimerInterrupt", &pVM->nem.s.u32GicPpiVTimer);
     146    AssertLogRelRCReturn(rc, rc);
     147#endif
    138148
    139149    return VINF_SUCCESS;
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp

    r101234 r101496  
    7070*   Defined Constants And Macros                                                                                                 *
    7171*********************************************************************************************************************************/
    72 
    73 
    74 /** @todo The vTimer PPI for the virt platform, make it configurable. */
    75 #define NEM_DARWIN_VTIMER_GIC_PPI_IRQ           11
    7672
    7773
     
    14121408            TMCpuSetVTimerNextActivation(pVCpu, UINT64_MAX);
    14131409            pVCpu->nem.s.fVTimerActivated = true;
    1414             return GICPpiSet(pVCpu, NEM_DARWIN_VTIMER_GIC_PPI_IRQ, true /*fAsserted*/);
     1410            return GICPpiSet(pVCpu, pVM->nem.s.u32GicPpiVTimer, true /*fAsserted*/);
    14151411        }
    14161412        default:
     
    14771473        {
    14781474            /* Clear the interrupt. */
    1479             GICPpiSet(pVCpu, NEM_DARWIN_VTIMER_GIC_PPI_IRQ, false /*fAsserted*/);
     1475            GICPpiSet(pVCpu, pVM->nem.s.u32GicPpiVTimer, false /*fAsserted*/);
    14801476
    14811477            pVCpu->nem.s.fVTimerActivated = false;
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