aboutsummaryrefslogtreecommitdiffstats
path: root/include/kvm
diff options
context:
space:
mode:
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>2015-10-01 08:47:19 -0400
committerMarc Zyngier <marc.zyngier@arm.com>2015-10-09 18:11:57 -0400
commit4f64cb65bf76fbd89c62d8e69c7bf75091950739 (patch)
tree5f0a1c9211947e817be6f499f1491a4bbf1573d9 /include/kvm
parent0b28f1db3dd2d4377c4a4dd8f85713ef44f11a25 (diff)
arm/arm64: KVM: Only allow 64bit hosts to build VGICv3
Hardware virtualisation of GICv3 is only supported by 64bit hosts for the moment. Some VGICv3 bits are missing from the 32bit side, and this patch allows to still be able to build 32bit hosts when CONFIG_ARM_GIC_V3 is selected. To this end, we introduce a new option, CONFIG_KVM_ARM_VGIC_V3, that is only enabled on the 64bit side. The selection is done unconditionally because CONFIG_ARM_GIC_V3 is always enabled on arm64. Reviewed-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/kvm')
-rw-r--r--include/kvm/arm_vgic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h
index 4e14dac282bb..6a3538ef7275 100644
--- a/include/kvm/arm_vgic.h
+++ b/include/kvm/arm_vgic.h
@@ -282,7 +282,7 @@ struct vgic_v2_cpu_if {
282}; 282};
283 283
284struct vgic_v3_cpu_if { 284struct vgic_v3_cpu_if {
285#ifdef CONFIG_ARM_GIC_V3 285#ifdef CONFIG_KVM_ARM_VGIC_V3
286 u32 vgic_hcr; 286 u32 vgic_hcr;
287 u32 vgic_vmcr; 287 u32 vgic_vmcr;
288 u32 vgic_sre; /* Restored only, change ignored */ 288 u32 vgic_sre; /* Restored only, change ignored */
@@ -364,7 +364,7 @@ void kvm_vgic_set_phys_irq_active(struct irq_phys_map *map, bool active);
364int vgic_v2_probe(struct device_node *vgic_node, 364int vgic_v2_probe(struct device_node *vgic_node,
365 const struct vgic_ops **ops, 365 const struct vgic_ops **ops,
366 const struct vgic_params **params); 366 const struct vgic_params **params);
367#ifdef CONFIG_ARM_GIC_V3 367#ifdef CONFIG_KVM_ARM_VGIC_V3
368int vgic_v3_probe(struct device_node *vgic_node, 368int vgic_v3_probe(struct device_node *vgic_node,
369 const struct vgic_ops **ops, 369 const struct vgic_ops **ops,
370 const struct vgic_params **params); 370 const struct vgic_params **params);