Lines Matching refs:gic_kvm_info
485 static struct gic_kvm_info *gic_kvm_info; variable
487 void __init vgic_set_kvm_info(const struct gic_kvm_info *info) in vgic_set_kvm_info()
489 BUG_ON(gic_kvm_info != NULL); in vgic_set_kvm_info()
490 gic_kvm_info = kmalloc(sizeof(*info), GFP_KERNEL); in vgic_set_kvm_info()
491 if (gic_kvm_info) in vgic_set_kvm_info()
492 *gic_kvm_info = *info; in vgic_set_kvm_info()
525 if (!gic_kvm_info) in kvm_vgic_hyp_init()
528 has_mask = !gic_kvm_info->no_maint_irq_mask; in kvm_vgic_hyp_init()
530 if (has_mask && !gic_kvm_info->maint_irq) { in kvm_vgic_hyp_init()
539 if (gic_kvm_info->no_hw_deactivation) { in kvm_vgic_hyp_init()
545 switch (gic_kvm_info->type) { in kvm_vgic_hyp_init()
547 ret = vgic_v2_probe(gic_kvm_info); in kvm_vgic_hyp_init()
550 ret = vgic_v3_probe(gic_kvm_info); in kvm_vgic_hyp_init()
560 kvm_vgic_global_state.maint_irq = gic_kvm_info->maint_irq; in kvm_vgic_hyp_init()
562 kfree(gic_kvm_info); in kvm_vgic_hyp_init()
563 gic_kvm_info = NULL; in kvm_vgic_hyp_init()