Lines Matching refs:arch
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()
49 mutex_lock(&kvm->arch.config_lock); in kvm_set_legacy_vgic_v2_addr()
71 mutex_unlock(&kvm->arch.config_lock); in kvm_set_legacy_vgic_v2_addr()
94 struct vgic_dist *vgic = &kvm->arch.vgic; in kvm_vgic_addr()
189 mutex_lock(&kvm->arch.config_lock); in kvm_vgic_addr()
197 mutex_unlock(&kvm->arch.config_lock); in kvm_vgic_addr()
236 mutex_lock(&dev->kvm->arch.config_lock); in vgic_set_common_attr()
238 if (vgic_ready(dev->kvm) || dev->kvm->arch.vgic.nr_spis) in vgic_set_common_attr()
241 dev->kvm->arch.vgic.nr_spis = in vgic_set_common_attr()
244 mutex_unlock(&dev->kvm->arch.config_lock); in vgic_set_common_attr()
251 mutex_lock(&dev->kvm->arch.config_lock); in vgic_set_common_attr()
253 mutex_unlock(&dev->kvm->arch.config_lock); in vgic_set_common_attr()
270 mutex_lock(&dev->kvm->arch.config_lock); in vgic_set_common_attr()
272 mutex_unlock(&dev->kvm->arch.config_lock); in vgic_set_common_attr()
296 r = put_user(dev->kvm->arch.vgic.nr_spis + in vgic_get_common_attr()
386 mutex_lock(&dev->kvm->arch.config_lock); in vgic_v2_attr_regs_access()
405 mutex_unlock(&dev->kvm->arch.config_lock); in vgic_v2_attr_regs_access()
547 mutex_lock(&dev->kvm->arch.config_lock); in vgic_v3_attr_regs_access()
585 mutex_unlock(&dev->kvm->arch.config_lock); in vgic_v3_attr_regs_access()