Lines Matching refs:gic_kvm_info
518 static struct gic_kvm_info *gic_kvm_info; variable
520 void __init vgic_set_kvm_info(const struct gic_kvm_info *info) in vgic_set_kvm_info()
522 BUG_ON(gic_kvm_info != NULL); in vgic_set_kvm_info()
523 gic_kvm_info = kmalloc(sizeof(*info), GFP_KERNEL); in vgic_set_kvm_info()
524 if (gic_kvm_info) in vgic_set_kvm_info()
525 *gic_kvm_info = *info; in vgic_set_kvm_info()
558 if (!gic_kvm_info) in kvm_vgic_hyp_init()
561 has_mask = !gic_kvm_info->no_maint_irq_mask; in kvm_vgic_hyp_init()
563 if (has_mask && !gic_kvm_info->maint_irq) { in kvm_vgic_hyp_init()
572 if (gic_kvm_info->no_hw_deactivation) { in kvm_vgic_hyp_init()
578 switch (gic_kvm_info->type) { in kvm_vgic_hyp_init()
580 ret = vgic_v2_probe(gic_kvm_info); in kvm_vgic_hyp_init()
583 ret = vgic_v3_probe(gic_kvm_info); in kvm_vgic_hyp_init()
593 kvm_vgic_global_state.maint_irq = gic_kvm_info->maint_irq; in kvm_vgic_hyp_init()
595 kfree(gic_kvm_info); in kvm_vgic_hyp_init()
596 gic_kvm_info = NULL; in kvm_vgic_hyp_init()