aboutsummaryrefslogtreecommitdiffstats
path: root/include/kvm
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-08-04 07:59:56 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2016-08-04 07:59:56 -0400
commit6f49b2f3414622d3e41135a65dac98968956662b (patch)
treeefd4c358a40b9e6adb9dd35de3407bbf17bd2935 /include/kvm
parentabe9efa79be02cf2ba27f643b214b07877bb050b (diff)
parent89581f06b2bc225f0c9822fa52e714aa2e3810dd (diff)
Merge tag 'kvm-arm-for-4.8-take2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
KVM/ARM Changes for v4.8 - Take 2 Includes GSI routing support to go along with the new VGIC and a small fix that has been cooking in -next for a while.
Diffstat (limited to 'include/kvm')
-rw-r--r--include/kvm/arm_vgic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h
index 540da5149ba7..19b698ef3336 100644
--- a/include/kvm/arm_vgic.h
+++ b/include/kvm/arm_vgic.h
@@ -34,6 +34,7 @@
34#define VGIC_MAX_SPI 1019 34#define VGIC_MAX_SPI 1019
35#define VGIC_MAX_RESERVED 1023 35#define VGIC_MAX_RESERVED 1023
36#define VGIC_MIN_LPI 8192 36#define VGIC_MIN_LPI 8192
37#define KVM_IRQCHIP_NUM_PINS (1020 - 32)
37 38
38enum vgic_type { 39enum vgic_type {
39 VGIC_V2, /* Good ol' GICv2 */ 40 VGIC_V2, /* Good ol' GICv2 */
@@ -314,4 +315,10 @@ static inline int kvm_vgic_get_max_vcpus(void)
314 315
315int kvm_send_userspace_msi(struct kvm *kvm, struct kvm_msi *msi); 316int kvm_send_userspace_msi(struct kvm *kvm, struct kvm_msi *msi);
316 317
318/**
319 * kvm_vgic_setup_default_irq_routing:
320 * Setup a default flat gsi routing table mapping all SPIs
321 */
322int kvm_vgic_setup_default_irq_routing(struct kvm *kvm);
323
317#endif /* __KVM_ARM_VGIC_H */ 324#endif /* __KVM_ARM_VGIC_H */