Lines Matching full:vgic

3  * VGIC: KVM DEVICE API
13 #include "vgic.h"
38 if (kvm->arch.vgic.vgic_model != type_needed) in vgic_check_type()
46 struct vgic_dist *vgic = &kvm->arch.vgic; in kvm_set_legacy_vgic_v2_addr() local
54 r = vgic_check_iorange(kvm, vgic->vgic_dist_base, dev_addr->addr, in kvm_set_legacy_vgic_v2_addr()
57 vgic->vgic_dist_base = dev_addr->addr; in kvm_set_legacy_vgic_v2_addr()
62 r = vgic_check_iorange(kvm, vgic->vgic_cpu_base, dev_addr->addr, in kvm_set_legacy_vgic_v2_addr()
65 vgic->vgic_cpu_base = dev_addr->addr; in kvm_set_legacy_vgic_v2_addr()
77 * kvm_vgic_addr - set or get vgic VM base addresses
83 * Set or get the vgic base addresses for the distributor and the virtual CPU
94 struct vgic_dist *vgic = &kvm->arch.vgic; in kvm_vgic_addr() local
109 addr_ptr = &vgic->vgic_dist_base; in kvm_vgic_addr()
115 addr_ptr = &vgic->vgic_cpu_base; in kvm_vgic_addr()
121 addr_ptr = &vgic->vgic_dist_base; in kvm_vgic_addr()
135 rdreg = list_first_entry_or_null(&vgic->rd_regions, in kvm_vgic_addr()
232 if (vgic_ready(dev->kvm) || dev->kvm->arch.vgic.nr_spis) in vgic_set_common_attr()
235 dev->kvm->arch.vgic.nr_spis = in vgic_set_common_attr()
287 r = put_user(dev->kvm->arch.vgic.nr_spis + in vgic_get_common_attr()
370 * that no other VCPUs are run and fiddle with the vgic state while we in lock_all_vcpus()
384 * vgic_v2_attr_regs_access - allows user space to access VGIC v2 state
495 .name = "kvm-arm-vgic-v2",
531 * vgic_v3_attr_regs_access - allows user space to access VGIC v3 state
689 .name = "kvm-arm-vgic-v3",