Lines Matching refs:its_vm
251 if (dist->its_vm.vpes) in vgic_v4_init()
256 dist->its_vm.vpes = kcalloc(nr_vcpus, sizeof(*dist->its_vm.vpes), in vgic_v4_init()
258 if (!dist->its_vm.vpes) in vgic_v4_init()
261 dist->its_vm.nr_vpes = nr_vcpus; in vgic_v4_init()
264 dist->its_vm.vpes[i] = &vcpu->arch.vgic_cpu.vgic_v3.its_vpe; in vgic_v4_init()
266 ret = its_alloc_vcpu_irqs(&dist->its_vm); in vgic_v4_init()
269 kfree(dist->its_vm.vpes); in vgic_v4_init()
270 dist->its_vm.nr_vpes = 0; in vgic_v4_init()
271 dist->its_vm.vpes = NULL; in vgic_v4_init()
276 int irq = dist->its_vm.vpes[i]->irq; in vgic_v4_init()
300 dist->its_vm.nr_vpes = i; in vgic_v4_init()
317 struct its_vm *its_vm = &kvm->arch.vgic.its_vm; in vgic_v4_teardown() local
322 if (!its_vm->vpes) in vgic_v4_teardown()
325 for (i = 0; i < its_vm->nr_vpes; i++) { in vgic_v4_teardown()
327 int irq = its_vm->vpes[i]->irq; in vgic_v4_teardown()
333 its_free_vcpu_irqs(its_vm); in vgic_v4_teardown()
334 kfree(its_vm->vpes); in vgic_v4_teardown()
335 its_vm->nr_vpes = 0; in vgic_v4_teardown()
336 its_vm->vpes = NULL; in vgic_v4_teardown()
446 .vm = &kvm->arch.vgic.its_vm, in kvm_vgic_v4_set_forwarding()