Lines Matching refs:its_vm
124 if (dist->its_vm.vpes) in vgic_v4_init()
129 dist->its_vm.vpes = kcalloc(nr_vcpus, sizeof(*dist->its_vm.vpes), in vgic_v4_init()
131 if (!dist->its_vm.vpes) in vgic_v4_init()
134 dist->its_vm.nr_vpes = nr_vcpus; in vgic_v4_init()
137 dist->its_vm.vpes[i] = &vcpu->arch.vgic_cpu.vgic_v3.its_vpe; in vgic_v4_init()
139 ret = its_alloc_vcpu_irqs(&dist->its_vm); in vgic_v4_init()
142 kfree(dist->its_vm.vpes); in vgic_v4_init()
143 dist->its_vm.nr_vpes = 0; in vgic_v4_init()
144 dist->its_vm.vpes = NULL; in vgic_v4_init()
149 int irq = dist->its_vm.vpes[i]->irq; in vgic_v4_init()
167 dist->its_vm.nr_vpes = i; in vgic_v4_init()
186 struct its_vm *its_vm = &kvm->arch.vgic.its_vm; in vgic_v4_teardown() local
189 if (!its_vm->vpes) in vgic_v4_teardown()
192 for (i = 0; i < its_vm->nr_vpes; i++) { in vgic_v4_teardown()
194 int irq = its_vm->vpes[i]->irq; in vgic_v4_teardown()
200 its_free_vcpu_irqs(its_vm); in vgic_v4_teardown()
201 kfree(its_vm->vpes); in vgic_v4_teardown()
202 its_vm->nr_vpes = 0; in vgic_v4_teardown()
203 its_vm->vpes = NULL; in vgic_v4_teardown()
293 .vm = &kvm->arch.vgic.its_vm, in kvm_vgic_v4_set_forwarding()