VirtualBox

Ignore:
Timestamp:
Aug 15, 2024 12:45:46 PM (4 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/GICAll.cpp

    r104386 r105687  
    12151215    /** @todo r=aeichner There must be another way to do this better, maybe create some callback interface
    12161216     *                   the GIC can register. */
    1217 #ifdef RT_OS_LINUX
    1218 # ifdef IN_RING3
    1219     if (pGic->fKvmGic)
    1220         return GICR3KvmSpiSet(pVM, uIntId, fAsserted);
    1221 # else
    1222 #  error "Impossible to call the KVM in-kernel GIC from this context!"
    1223 # endif
     1217#ifdef IN_RING3
     1218    if (pGic->fNemGic)
     1219        return GICR3NemSpiSet(pVM, uIntId, fAsserted);
     1220#else
     1221# error "Impossible to call the NEM in-kernel GIC from this context!"
    12241222#endif
    12251223
     
    12591257    /** @todo r=aeichner There must be another way to do this better, maybe create some callback interface
    12601258     *                   the GIC can register. */
    1261 #ifdef RT_OS_LINUX
    1262 # ifdef IN_RING3
     1259#ifdef IN_RING3
    12631260    PGIC pGic = VM_TO_GIC(pVCpu->pVMR3);
    1264     if (pGic->fKvmGic)
    1265         return GICR3KvmPpiSet(pVCpu, uIntId, fAsserted);
    1266 # else
    1267 #  error "Impossible to call the KVM in-kernel GIC from this context!"
    1268 # endif
     1261    if (pGic->fNemGic)
     1262        return GICR3NemPpiSet(pVCpu, uIntId, fAsserted);
     1263#else
     1264# error "Impossible to call the NEM in-kernel GIC from this context!"
    12691265#endif
    12701266
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