Updated header file to prepare for new interrupt injection API. Signed-off-by: Christoffer Dall <c.dall@xxxxxxxxxxxxxxxxxxxxxx> --- linux-headers/asm-arm/kvm.h | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/linux-headers/asm-arm/kvm.h b/linux-headers/asm-arm/kvm.h index d040a2a..a41cc4b 100644 --- a/linux-headers/asm-arm/kvm.h +++ b/linux-headers/asm-arm/kvm.h @@ -25,14 +25,6 @@ #define __KVM_HAVE_IRQ_LINE /* - * KVM_IRQ_LINE macros to set/read IRQ/FIQ for specific VCPU index. - */ -enum KVM_ARM_IRQ_LINE_TYPE { - KVM_ARM_IRQ_LINE = 0, - KVM_ARM_FIQ_LINE = 1, -}; - -/* * Modes used for short-hand mode determinition in the world-switch code and * in emulation code. * @@ -116,4 +108,24 @@ struct kvm_msr_list { #define KVM_ARM_MSR_32_CRN_MASK 0x00000780 #define KVM_ARM_MSR_32_OPC1_MASK 0x00003800 +/* KVM_IRQ_LINE irq field index values */ +#define KVM_ARM_IRQ_TYPE_SHIFT 24 +#define KVM_ARM_IRQ_TYPE_MASK 0xff +#define KVM_ARM_IRQ_VCPU_SHIFT 16 +#define KVM_ARM_IRQ_VCPU_MASK 0xff +#define KVM_ARM_IRQ_NUM_SHIFT 0 +#define KVM_ARM_IRQ_NUM_MASK 0xffff + +/* irq_type field */ +#define KVM_ARM_IRQ_TYPE_CPU 0 +#define KVM_ARM_IRQ_TYPE_SPI 1 +#define KVM_ARM_IRQ_TYPE_PPI 2 + +/* out-of-kernel GIC cpu interrupt injection irq_number field */ +#define KVM_ARM_IRQ_CPU_IRQ 0 +#define KVM_ARM_IRQ_CPU_FIQ 1 + +/* Highest supported SPI, from VGIC_NR_IRQS */ +#define KVM_ARM_IRQ_GIC_MAX 127 + #endif /* __ARM_KVM_H__ */ -- 1.7.9.5 _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm