VirtualBox

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


Ignore:
Timestamp:
Aug 15, 2024 12:45:46 PM (5 months ago)
Author:
vboxsync
Message:

VMMArm/GIC: Rename GICR3Kvm to GICR3Nem and add a stub for macOS Hypervisor.framework which will be handled by the NEM backend directly due to the hv_gic_* API being entangled with the rest of the hv_* API, bugref:10747

Location:
trunk/src/VBox/VMM/VMMR3
Files:
1 added
2 edited
1 moved

Legend:

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

    r100758 r105687  
    7070    GIC_SYSREGRANGE(ARMV8_AARCH64_SYSREG_ICC_DIR_EL1,   ARMV8_AARCH64_SYSREG_ICC_SGI0R_EL1,   "ICC_DIR_EL1 - ICC_SGI0R_EL1"),
    7171    GIC_SYSREGRANGE(ARMV8_AARCH64_SYSREG_ICC_IAR1_EL1,  ARMV8_AARCH64_SYSREG_ICC_IGRPEN1_EL1, "ICC_IAR1_EL1 - ICC_IGRPEN1_EL1"),
     72    GIC_SYSREGRANGE(ARMV8_AARCH64_SYSREG_ICC_SRE_EL2,   ARMV8_AARCH64_SYSREG_ICC_SRE_EL2,     "ICC_SRE_EL2")
    7273};
    7374
  • trunk/src/VBox/VMM/VMMR3/GICR3Nem-linux.cpp

    r105686 r105687  
    138138 * @param   fAsserted   Flag whether the interrupt is asserted (true) or not (false).
    139139 */
    140 VMMR3_INT_DECL(int) GICR3KvmSpiSet(PVMCC pVM, uint32_t uIntId, bool fAsserted)
     140VMMR3_INT_DECL(int) GICR3NemSpiSet(PVMCC pVM, uint32_t uIntId, bool fAsserted)
    141141{
    142142    PGIC pGic = VM_TO_GIC(pVM);
     
    157157 * @param   fAsserted   Flag whether the interrupt is asserted (true) or not (false).
    158158 */
    159 VMMR3_INT_DECL(int) GICR3KvmPpiSet(PVMCPUCC pVCpu, uint32_t uIntId, bool fAsserted)
     159VMMR3_INT_DECL(int) GICR3NemPpiSet(PVMCPUCC pVCpu, uint32_t uIntId, bool fAsserted)
    160160{
    161161    PPDMDEVINS pDevIns = VMCPU_TO_DEVINS(pVCpu);
     
    276276     */
    277277    pGic->pDevInsR3 = pDevIns;
    278     pGic->fKvmGic   = true;
     278    pGic->fNemGic   = true;
    279279    pThis->pDevIns  = pDevIns;
    280280    pThis->fdKvmVm  = pVM->nem.s.fdVm;
     
    359359 * GIC device registration structure.
    360360 */
    361 const PDMDEVREG g_DeviceGICKvm =
     361const PDMDEVREG g_DeviceGICNem =
    362362{
    363363    /* .u32Version = */             PDM_DEVREG_VERSION,
    364364    /* .uReserved0 = */             0,
    365     /* .szName = */                 "gic-kvm",
     365    /* .szName = */                 "gic-nem",
    366366    /* .fFlags = */                 PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_NEW_STYLE,
    367367    /* .fClass = */                 PDM_DEVREG_CLASS_PIC,
  • trunk/src/VBox/VMM/VMMR3/PDMDevice.cpp

    r104386 r105687  
    686686    AssertRCReturn(rc, rc);
    687687
    688 # ifdef RT_OS_LINUX
    689     /*
    690      * Register the internal VMM GIC device, KVM variant.
    691      */
    692     rc = pdmR3DevReg_Register(&RegCB.Core, &g_DeviceGICKvm);
     688    /*
     689     * Register the internal VMM GIC device, NEM variant.
     690     */
     691    rc = pdmR3DevReg_Register(&RegCB.Core, &g_DeviceGICNem);
    693692    AssertRCReturn(rc, rc);
    694 # endif
    695693#else
    696694    /*
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