mirror-linux/include/linux/irqchip
Sascha Bischoff 9b8e3d4ca0 KVM: arm64: gic-v5: Implement GICv5 load/put and save/restore
This change introduces GICv5 load/put. Additionally, it plumbs in
save/restore for:

* PPIs (ICH_PPI_x_EL2 regs)
* ICH_VMCR_EL2
* ICH_APR_EL2
* ICC_ICSR_EL1

A GICv5-specific enable bit is added to struct vgic_vmcr as this
differs from previous GICs. On GICv5-native systems, the VMCR only
contains the enable bit (driven by the guest via ICC_CR0_EL1.EN) and
the priority mask (PCR).

A struct gicv5_vpe is also introduced. This currently only contains a
single field - bool resident - which is used to track if a VPE is
currently running or not, and is used to avoid a case of double load
or double put on the WFI path for a vCPU. This struct will be extended
as additional GICv5 support is merged, specifically for VPE doorbells.

Co-authored-by: Timothy Hayes <timothy.hayes@arm.com>
Signed-off-by: Timothy Hayes <timothy.hayes@arm.com>
Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20260319154937.3619520-18-sascha.bischoff@arm.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
2026-03-19 18:21:28 +00:00
..
arm-gic-common.h
arm-gic-v3-prio.h
arm-gic-v3.h irqchip/gic-v3-its: Limit number of per-device MSIs to the range the ITS supports 2026-02-17 11:00:43 +01:00
arm-gic-v4.h
arm-gic-v5.h KVM: arm64: gic-v5: Implement GICv5 load/put and save/restore 2026-03-19 18:21:28 +00:00
arm-gic.h irqchip/gic: Add missing GICH_HCR control bits 2025-11-24 14:29:11 -08:00
arm-vgic-info.h irqchip/gic: Expose CPU interface VA to KVM 2025-11-24 14:29:11 -08:00
arm-vic.h
chained_irq.h
irq-bcm2836.h
irq-madera.h
irq-msi-lib.h irqchip/irq-msi-lib: Fix build with PCI disabled 2025-07-10 23:46:05 +02:00
irq-omap-intc.h
irq-renesas-rzt2h.h irqchip: Add RZ/{T2H,N2H} Interrupt Controller (ICU) driver 2025-12-15 22:44:32 +01:00
irq-renesas-rzv2h.h
irq-sa11x0.h
riscv-aplic.h
riscv-imsic.h irqchip/riscv-imsic: Adjust the number of available guest irq files 2026-02-06 19:05:34 +05:30
xtensa-mx.h
xtensa-pic.h