Lines Matching full:vgic
3 * VGIC: KVM DEVICE API
13 #include "vgic.h"
39 if (kvm->arch.vgic.vgic_model != type_needed) in vgic_check_type()
47 struct vgic_dist *vgic = &kvm->arch.vgic; in kvm_set_legacy_vgic_v2_addr() local
55 r = vgic_check_iorange(kvm, vgic->vgic_dist_base, dev_addr->addr, in kvm_set_legacy_vgic_v2_addr()
58 vgic->vgic_dist_base = dev_addr->addr; in kvm_set_legacy_vgic_v2_addr()
63 r = vgic_check_iorange(kvm, vgic->vgic_cpu_base, dev_addr->addr, in kvm_set_legacy_vgic_v2_addr()
66 vgic->vgic_cpu_base = dev_addr->addr; in kvm_set_legacy_vgic_v2_addr()
78 * kvm_vgic_addr - set or get vgic VM base addresses
84 * Set or get the vgic base addresses for the distributor and the virtual CPU
95 struct vgic_dist *vgic = &kvm->arch.vgic; in kvm_vgic_addr() local
114 addr_ptr = &vgic->vgic_dist_base; in kvm_vgic_addr()
120 addr_ptr = &vgic->vgic_cpu_base; in kvm_vgic_addr()
126 addr_ptr = &vgic->vgic_dist_base; in kvm_vgic_addr()
140 rdreg = list_first_entry_or_null(&vgic->rd_regions, in kvm_vgic_addr()
241 * the vgic has already been initialized and vgic_init() in vgic_set_common_attr()
244 if (dev->kvm->arch.vgic.nr_spis) in vgic_set_common_attr()
247 dev->kvm->arch.vgic.nr_spis = in vgic_set_common_attr()
302 r = put_user(dev->kvm->arch.vgic.nr_spis + in vgic_get_common_attr()
357 * vgic_v2_attr_regs_access - allows user space to access VGIC v2 state
471 .name = "kvm-arm-vgic-v2",
507 * vgic_v3_attr_regs_access - allows user space to access VGIC v3 state
668 .name = "kvm-arm-vgic-v3",