In order to correctly describe GICv5 interrupts in the FDT, we add the GICv5-specific FDT identifiers for GICv5's PPIs, and SPIs. These match those from GICv5's device tree schema. NOTE: LPIs are intentionally omitted as there is no way to describe them in the DT, and KVM doesn't provide an interface for userspace to drive them directly in the first place. Signed-off-by: Sascha Bischoff --- arm64/include/kvm/gic.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arm64/include/kvm/gic.h b/arm64/include/kvm/gic.h index 991aa912..f534ea5b 100644 --- a/arm64/include/kvm/gic.h +++ b/arm64/include/kvm/gic.h @@ -10,6 +10,12 @@ #define GIC_FDT_IRQ_TYPE_SPI 0 #define GIC_FDT_IRQ_TYPE_PPI 1 +#define GICV5_FDT_IRQ_TYPE_PPI 1 +/* No LPI */ +#define GICV5_FDT_IRQ_TYPE_SPI 3 +#define GICV5_FDT_IRQ_TYPE_SHIFT 29 +#define GICV5_FDT_IRQ_TYPE_MASK (0x7 << GICV5_FDT_IRQ_TYPE_SHIFT) + #define GIC_FDT_IRQ_PPI_CPU_SHIFT 8 #define GIC_FDT_IRQ_PPI_CPU_MASK (0xff << GIC_FDT_IRQ_PPI_CPU_SHIFT) -- 2.34.1