Changeset 107308 in vbox for trunk/src/VBox/VMM/VMMR3/GICR3Nem-linux.cpp
- Timestamp:
- Dec 13, 2024 8:09:39 AM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/GICR3Nem-linux.cpp
r105687 r107308 34 34 #include "GICInternal.h" 35 35 #include "NEMInternal.h" /* Need access to the VM file descriptor. */ 36 #include <VBox/vmm/ gic.h>36 #include <VBox/vmm/pdmgic.h> 37 37 #include <VBox/vmm/cpum.h> 38 38 #include <VBox/vmm/hm.h> … … 101 101 102 102 /** 103 * Common worker for GICR3KvmSpiSet() and GICR3KvmPpiSet().103 * Common worker for gicR3KvmSpiSet() and gicR3KvmPpiSet(). 104 104 * 105 105 * @returns VBox status code. … … 138 138 * @param fAsserted Flag whether the interrupt is asserted (true) or not (false). 139 139 */ 140 VMMR3_INT_DECL(int) GICR3NemSpiSet(PVMCC pVM, uint32_t uIntId, bool fAsserted)140 static DECLCALLBACK(int) gicR3KvmSetSpi(PVMCC pVM, uint32_t uIntId, bool fAsserted) 141 141 { 142 142 PGIC pGic = VM_TO_GIC(pVM); … … 157 157 * @param fAsserted Flag whether the interrupt is asserted (true) or not (false). 158 158 */ 159 VMMR3_INT_DECL(int) GICR3NemPpiSet(PVMCPUCC pVCpu, uint32_t uIntId, bool fAsserted)159 static DECLCALLBACK(int) gicR3KvmSetPpi(PVMCPUCC pVCpu, uint32_t uIntId, bool fAsserted) 160 160 { 161 161 PPDMDEVINS pDevIns = VMCPU_TO_DEVINS(pVCpu); 162 162 163 return gicR3KvmSetIrq(pDevIns, pVCpu->idCpu, KVM_ARM_IRQ_TYPE_ SPI,163 return gicR3KvmSetIrq(pDevIns, pVCpu->idCpu, KVM_ARM_IRQ_TYPE_PPI, 164 164 uIntId + GIC_INTID_RANGE_PPI_START, fAsserted); 165 165 } … … 294 294 * Register the GIC with PDM. 295 295 */ 296 rc = PDMDevHlpApicRegister(pDevIns); 296 rc = PDMDevHlpIcRegister(pDevIns); 297 AssertLogRelRCReturn(rc, rc); 298 299 rc = PDMGicRegisterBackend(pVM, PDMGICBACKENDTYPE_KVM, &g_GicKvmBackend); 297 300 AssertLogRelRCReturn(rc, rc); 298 301 … … 405 408 }; 406 409 410 /** 411 * The KVM GIC backend. 412 */ 413 const PDMGICBACKEND g_GicKvmBackend = 414 { 415 /* .pfnReadSysReg = */ NULL, 416 /* .pfnWriteSysReg = */ NULL, 417 /* .pfnSetSpi = */ gicR3KvmSetSpi, 418 /* .pfnSetPpi = */ gicR3KvmSetPpi, 419 }; 420 407 421 #endif /* !VBOX_DEVICE_STRUCT_TESTCASE */ 408 422
Note:
See TracChangeset
for help on using the changeset viewer.