diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2013-06-18 14:17:28 -0400 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2014-07-11 07:57:34 -0400 |
commit | ca85f623e37d096206e092ef037a145a60fa7f85 (patch) | |
tree | 1aefb3cd929f5707d18e486e77c95cf8b29dce47 /include/kvm | |
parent | da8dafd1777cdd93091207952297d221a88e6479 (diff) |
KVM: ARM: introduce vgic_params structure
Move all the data specific to a given GIC implementation into its own
little structure.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/kvm')
-rw-r--r-- | include/kvm/arm_vgic.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index 2228973ea8e4..ce2e14226dbf 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h | |||
@@ -102,6 +102,17 @@ struct vgic_ops { | |||
102 | void (*enable)(struct kvm_vcpu *vcpu); | 102 | void (*enable)(struct kvm_vcpu *vcpu); |
103 | }; | 103 | }; |
104 | 104 | ||
105 | struct vgic_params { | ||
106 | /* Physical address of vgic virtual cpu interface */ | ||
107 | phys_addr_t vcpu_base; | ||
108 | /* Number of list registers */ | ||
109 | u32 nr_lr; | ||
110 | /* Interrupt number */ | ||
111 | unsigned int maint_irq; | ||
112 | /* Virtual control interface base address */ | ||
113 | void __iomem *vctrl_base; | ||
114 | }; | ||
115 | |||
105 | struct vgic_dist { | 116 | struct vgic_dist { |
106 | #ifdef CONFIG_KVM_ARM_VGIC | 117 | #ifdef CONFIG_KVM_ARM_VGIC |
107 | spinlock_t lock; | 118 | spinlock_t lock; |