Lines Matching refs:gic_kvm_info
492 static struct gic_kvm_info *gic_kvm_info; variable
494 void __init vgic_set_kvm_info(const struct gic_kvm_info *info) in vgic_set_kvm_info()
496 BUG_ON(gic_kvm_info != NULL); in vgic_set_kvm_info()
497 gic_kvm_info = kmalloc(sizeof(*info), GFP_KERNEL); in vgic_set_kvm_info()
498 if (gic_kvm_info) in vgic_set_kvm_info()
499 *gic_kvm_info = *info; in vgic_set_kvm_info()
532 if (!gic_kvm_info) in kvm_vgic_hyp_init()
535 has_mask = !gic_kvm_info->no_maint_irq_mask; in kvm_vgic_hyp_init()
537 if (has_mask && !gic_kvm_info->maint_irq) { in kvm_vgic_hyp_init()
546 if (gic_kvm_info->no_hw_deactivation) { in kvm_vgic_hyp_init()
552 switch (gic_kvm_info->type) { in kvm_vgic_hyp_init()
554 ret = vgic_v2_probe(gic_kvm_info); in kvm_vgic_hyp_init()
557 ret = vgic_v3_probe(gic_kvm_info); in kvm_vgic_hyp_init()
567 kvm_vgic_global_state.maint_irq = gic_kvm_info->maint_irq; in kvm_vgic_hyp_init()
569 kfree(gic_kvm_info); in kvm_vgic_hyp_init()
570 gic_kvm_info = NULL; in kvm_vgic_hyp_init()