Searched refs:vgic (Results 1 – 15 of 15) sorted by relevance
54 struct vgic_dist *dist = &kvm->arch.vgic; in kvm_vgic_early_init()117 kvm->arch.vgic.in_kernel = true; in kvm_vgic_create()118 kvm->arch.vgic.vgic_model = type; in kvm_vgic_create()120 kvm->arch.vgic.vgic_dist_base = VGIC_ADDR_UNDEF; in kvm_vgic_create()123 kvm->arch.vgic.vgic_cpu_base = VGIC_ADDR_UNDEF; in kvm_vgic_create()125 INIT_LIST_HEAD(&kvm->arch.vgic.rd_regions); in kvm_vgic_create()144 struct vgic_dist *dist = &kvm->arch.vgic; in kvm_vgic_dist_init()199 struct vgic_dist *dist = &vcpu->kvm->arch.vgic; in kvm_vgic_vcpu_init()266 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_init()332 struct vgic_dist *dist = &kvm->arch.vgic; in kvm_vgic_dist_destroy()[all …]
63 iter->nr_spis = kvm->arch.vgic.nr_spis; in iter_init()64 if (kvm->arch.vgic.vgic_model == KVM_DEV_TYPE_ARM_VGIC_V3) { in iter_init()89 iter = kvm->arch.vgic.iter; in vgic_debug_start()102 kvm->arch.vgic.iter = iter; in vgic_debug_start()114 struct vgic_state_iter *iter = kvm->arch.vgic.iter; in vgic_debug_next()136 iter = kvm->arch.vgic.iter; in vgic_debug_stop()139 kvm->arch.vgic.iter = NULL; in vgic_debug_stop()227 print_dist_state(s, &kvm->arch.vgic); in vgic_debug_show()231 if (!kvm->arch.vgic.initialized) in vgic_debug_show()
34 if (kvm->arch.vgic.vgic_model != type_needed) in vgic_check_type()59 struct vgic_dist *vgic = &kvm->arch.vgic; in kvm_vgic_addr() local67 addr_ptr = &vgic->vgic_dist_base; in kvm_vgic_addr()72 addr_ptr = &vgic->vgic_cpu_base; in kvm_vgic_addr()77 addr_ptr = &vgic->vgic_dist_base; in kvm_vgic_addr()90 rdreg = list_first_entry_or_null(&vgic->rd_regions, in kvm_vgic_addr()193 if (vgic_ready(dev->kvm) || dev->kvm->arch.vgic.nr_spis) in vgic_set_common_attr()196 dev->kvm->arch.vgic.nr_spis = in vgic_set_common_attr()240 r = put_user(dev->kvm->arch.vgic.nr_spis + in vgic_get_common_attr()
35 u32 model = vcpu->kvm->arch.vgic.vgic_model; in vgic_v3_fold_lr_state()120 u32 model = vcpu->kvm->arch.vgic.vgic_model; in vgic_v3_populate_lr()208 u32 model = vcpu->kvm->arch.vgic.vgic_model; in vgic_v3_set_vmcr()238 u32 model = vcpu->kvm->arch.vgic.vgic_model; in vgic_v3_get_vmcr()288 if (vcpu->kvm->arch.vgic.vgic_model == KVM_DEV_TYPE_ARM_VGIC_V3) { in vgic_v3_enable()365 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_v3_save_pending_tables()422 struct vgic_dist *d = &kvm->arch.vgic; in vgic_v3_rdist_overlap()439 struct vgic_dist *d = &kvm->arch.vgic; in vgic_v3_check_base()485 struct list_head *rd_regions = &kvm->arch.vgic.rd_regions; in vgic_v3_rdist_region_from_index()498 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_v3_map_resources()
41 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_has_its()64 struct vgic_dist *vgic = &vcpu->kvm->arch.vgic; in vgic_mmio_read_v3_misc() local69 if (vgic->enabled) in vgic_mmio_read_v3_misc()74 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v3_misc()85 (vgic->implementation_rev << GICD_IIDR_REVISION_SHIFT) | in vgic_mmio_read_v3_misc()99 struct vgic_dist *dist = &vcpu->kvm->arch.vgic; in vgic_mmio_write_v3_misc()404 struct vgic_dist *dist = &vcpu->kvm->arch.vgic; in vgic_mmio_read_propbase()413 struct vgic_dist *dist = &vcpu->kvm->arch.vgic; in vgic_mmio_write_propbase()626 struct vgic_dist *vgic = &kvm->arch.vgic; in vgic_register_redist_iodev() local642 rdreg = vgic_v3_rdist_free_slot(&vgic->rd_regions); in vgic_register_redist_iodev()[all …]
28 struct vgic_dist *vgic = &vcpu->kvm->arch.vgic; in vgic_mmio_read_v2_misc() local33 value = vgic->enabled ? GICD_ENABLE : 0; in vgic_mmio_read_v2_misc()36 value = vgic->nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_mmio_read_v2_misc()42 (vgic->implementation_rev << GICD_IIDR_REVISION_SHIFT) | in vgic_mmio_read_v2_misc()56 struct vgic_dist *dist = &vcpu->kvm->arch.vgic; in vgic_mmio_write_v2_misc()90 vcpu->kvm->arch.vgic.v2_groups_user_writable = true; in vgic_mmio_uaccess_write_v2_misc()102 if (vcpu->kvm->arch.vgic.v2_groups_user_writable) in vgic_mmio_uaccess_write_v2_group()
60 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_get_lpi()100 if (intid < (kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS)) { in vgic_get_irq()101 intid = array_index_nospec(intid, kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS); in vgic_get_irq()102 return &kvm->arch.vgic.spis[intid - VGIC_NR_PRIVATE_IRQS]; in vgic_get_irq()127 struct vgic_dist *dist = &kvm->arch.vgic; in __vgic_put_lpi_locked()140 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_put_irq()231 !irq->target_vcpu->kvm->arch.vgic.enabled)) in vgic_target_oracle()956 if (!vcpu->kvm->arch.vgic.enabled) in kvm_vgic_vcpu_pending_irq()
217 vcpu->kvm->arch.vgic.vgic_model == KVM_DEV_TYPE_ARM_VGIC_V2); in is_vgic_v2_sgi()321 if (vcpu->kvm->arch.vgic.vgic_model == KVM_DEV_TYPE_ARM_VGIC_V3 || in vgic_access_active_prepare()329 if (vcpu->kvm->arch.vgic.vgic_model == KVM_DEV_TYPE_ARM_VGIC_V3 || in vgic_access_active_finish()403 u32 model = vcpu->kvm->arch.vgic.vgic_model; in vgic_mmio_change_active()607 int nr_irqs = vcpu->kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_read_irq_line_level_info()629 int nr_irqs = vcpu->kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in vgic_write_irq_line_level_info()759 int flags, nr_irqs = kvm->arch.vgic.nr_spis + VGIC_NR_PRIVATE_IRQS; in check_region()922 struct vgic_io_device *io_device = &kvm->arch.vgic.dist_iodev; in vgic_register_dist_iodev()
106 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_v4_init()175 struct its_vm *its_vm = &kvm->arch.vgic.its_vm; in vgic_v4_teardown()282 .vm = &kvm->arch.vgic.its_vm, in kvm_vgic_v4_set_forwarding()
33 #define TRACE_INCLUDE_PATH ../../virt/kvm/arm/vgic
42 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_add_lpi()283 u64 propbase = GICR_PROPBASER_ADDRESS(kvm->arch.vgic.propbaser); in update_lpi_config()321 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_copy_lpi_list()582 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_its_check_cache()601 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_its_cache_translation()652 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_its_invalidate_cache()1079 lpi_nr >= max_lpis_propbaser(kvm->arch.vgic.propbaser)) in vgic_its_cmd_handle_mapi()1846 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_lpi_translation_cache_init()1870 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_lpi_translation_cache_destroy()1922 dev->kvm->arch.vgic.msis_require_devid = true; in vgic_its_create()[all …]
124 struct vgic_dist *dist = &kvm->arch.vgic; in kvm_vgic_setup_default_irq_routing()
301 struct vgic_dist *d = &kvm->arch.vgic; in vgic_dist_overlap()
306 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_v2_map_resources()
218 r = kvm->arch.vgic.msis_require_devid; in kvm_vm_ioctl_check_extension()