Home
last modified time | relevance | path

Searched refs:slots_lock (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v6.6/virt/kvm/
Dcoalesced_mmio.c155 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_register_coalesced_mmio()
162 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_register_coalesced_mmio()
167 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_register_coalesced_mmio()
182 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_unregister_coalesced_mmio()
199 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_unregister_coalesced_mmio()
Deventfd.c868 mutex_lock(&kvm->slots_lock); in kvm_assign_ioeventfd_idx()
886 mutex_unlock(&kvm->slots_lock); in kvm_assign_ioeventfd_idx()
891 mutex_unlock(&kvm->slots_lock); in kvm_assign_ioeventfd_idx()
916 mutex_lock(&kvm->slots_lock); in kvm_deassign_ioeventfd_idx()
937 mutex_unlock(&kvm->slots_lock); in kvm_deassign_ioeventfd_idx()
Ddirty_ring.c26 lockdep_assert_held(&kvm->slots_lock); in kvm_use_dirty_bitmap()
Dkvm_main.c392 lockdep_assert_held(&kvm->slots_lock); in kvm_flush_remote_tlbs_memslot()
1169 mutex_init(&kvm->slots_lock); in kvm_create_vm()
2058 mutex_lock(&kvm->slots_lock); in kvm_set_memory_region()
2060 mutex_unlock(&kvm->slots_lock); in kvm_set_memory_region()
2241 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log()
2245 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log()
2336 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_clear_dirty_log()
2340 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_clear_dirty_log()
4641 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_reset_dirty_pages()
4646 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_reset_dirty_pages()
[all …]
/Linux-v6.6/arch/arm64/kvm/vgic/
Dvgic-init.c238 mutex_lock(&vcpu->kvm->slots_lock); in kvm_vgic_vcpu_init()
240 mutex_unlock(&vcpu->kvm->slots_lock); in kvm_vgic_vcpu_init()
456 mutex_lock(&kvm->slots_lock); in kvm_vgic_map_resources()
485 mutex_unlock(&kvm->slots_lock); in kvm_vgic_map_resources()
490 mutex_unlock(&kvm->slots_lock); in kvm_vgic_map_resources()
Dvgic-kvm-device.c109 mutex_lock(&kvm->slots_lock); in kvm_vgic_addr()
200 mutex_unlock(&kvm->slots_lock); in kvm_vgic_addr()
/Linux-v6.6/arch/riscv/kvm/
Daia_aplic.c576 mutex_lock(&kvm->slots_lock); in kvm_riscv_aia_aplic_init()
581 mutex_unlock(&kvm->slots_lock); in kvm_riscv_aia_aplic_init()
593 mutex_lock(&kvm->slots_lock); in kvm_riscv_aia_aplic_init()
595 mutex_unlock(&kvm->slots_lock); in kvm_riscv_aia_aplic_init()
611 mutex_lock(&kvm->slots_lock); in kvm_riscv_aia_aplic_cleanup()
613 mutex_unlock(&kvm->slots_lock); in kvm_riscv_aia_aplic_cleanup()
Daia_imsic.c1045 mutex_lock(&kvm->slots_lock); in kvm_riscv_vcpu_aia_imsic_init()
1050 mutex_unlock(&kvm->slots_lock); in kvm_riscv_vcpu_aia_imsic_init()
1075 mutex_lock(&kvm->slots_lock); in kvm_riscv_vcpu_aia_imsic_cleanup()
1077 mutex_unlock(&kvm->slots_lock); in kvm_riscv_vcpu_aia_imsic_cleanup()
/Linux-v6.6/arch/x86/kvm/
Di8259.c611 mutex_lock(&kvm->slots_lock); in kvm_pic_init()
625 mutex_unlock(&kvm->slots_lock); in kvm_pic_init()
638 mutex_unlock(&kvm->slots_lock); in kvm_pic_init()
652 mutex_lock(&kvm->slots_lock); in kvm_pic_destroy()
656 mutex_unlock(&kvm->slots_lock); in kvm_pic_destroy()
Di8254.c704 mutex_lock(&kvm->slots_lock); in kvm_create_pit()
719 mutex_unlock(&kvm->slots_lock); in kvm_create_pit()
726 mutex_unlock(&kvm->slots_lock); in kvm_create_pit()
741 mutex_lock(&kvm->slots_lock); in kvm_free_pit()
744 mutex_unlock(&kvm->slots_lock); in kvm_free_pit()
Ddebugfs.c111 mutex_lock(&kvm->slots_lock); in kvm_mmu_rmaps_stat_show()
133 mutex_unlock(&kvm->slots_lock); in kvm_mmu_rmaps_stat_show()
Dioapic.c728 mutex_lock(&kvm->slots_lock); in kvm_ioapic_init()
731 mutex_unlock(&kvm->slots_lock); in kvm_ioapic_init()
748 mutex_lock(&kvm->slots_lock); in kvm_ioapic_destroy()
750 mutex_unlock(&kvm->slots_lock); in kvm_ioapic_destroy()
Dlapic.c2602 mutex_lock(&kvm->slots_lock); in kvm_alloc_apic_access_page()
2627 mutex_unlock(&kvm->slots_lock); in kvm_alloc_apic_access_page()
2641 mutex_lock(&kvm->slots_lock); in kvm_inhibit_apic_access_page()
2662 mutex_unlock(&kvm->slots_lock); in kvm_inhibit_apic_access_page()
/Linux-v6.6/arch/mips/kvm/
Dloongson_ipi.c208 mutex_lock(&kvm->slots_lock); in kvm_init_loongson_ipi()
210 mutex_unlock(&kvm->slots_lock); in kvm_init_loongson_ipi()
/Linux-v6.6/Documentation/virt/kvm/
Dlocking.rst16 - kvm->lock is taken outside kvm->slots_lock and kvm->irq_lock
18 - kvm->slots_lock is taken outside kvm->irq_lock, though acquiring
23 use the same memslots array. kvm->slots_lock and kvm->slots_arch_lock
25 must not take either kvm->slots_lock or kvm->slots_arch_lock.
30 for kvm->lock, vcpu->mutex and kvm->slots_lock. These locks _cannot_
35 mutex_lock(&kvm->slots_lock);
/Linux-v6.6/arch/x86/kvm/mmu/
Dpage_track.c82 lockdep_assert_once(lockdep_is_held(&kvm->slots_lock) || in __kvm_write_track_add_gfn()
105 lockdep_assert_once(lockdep_is_held(&kvm->slots_lock) || in __kvm_write_track_remove_gfn()
/Linux-v6.6/security/selinux/
Davc.c73 spinlock_t slots_lock[AVC_CACHE_SLOTS]; /* lock for writes */ member
103 spin_lock_init(&selinux_avc.avc_cache.slots_lock[i]); in selinux_avc_init()
473 lock = &selinux_avc.avc_cache.slots_lock[hvalue]; in avc_reclaim_node()
632 lock = &selinux_avc.avc_cache.slots_lock[hvalue]; in avc_insert()
853 lock = &selinux_avc.avc_cache.slots_lock[hvalue]; in avc_update_node()
933 lock = &selinux_avc.avc_cache.slots_lock[i]; in avc_flush()
/Linux-v6.6/arch/powerpc/kvm/
Dmpic.c1475 mutex_lock(&opp->kvm->slots_lock); in set_base_addr()
1489 mutex_unlock(&opp->kvm->slots_lock); in set_base_addr()
1567 mutex_lock(&opp->kvm->slots_lock); in mpic_get_attr()
1569 mutex_unlock(&opp->kvm->slots_lock); in mpic_get_attr()
Dbook3s_pr.c1880 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log_pr()
1900 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log_pr()
Dbook3s_64_mmu_hv.c1992 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_get_htab_fd()
1996 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_get_htab_fd()
/Linux-v6.6/arch/s390/kvm/
Dpv.c182 mutex_lock(&kvm->slots_lock); in kvm_s390_pv_alloc_vm()
184 mutex_unlock(&kvm->slots_lock); in kvm_s390_pv_alloc_vm()
Dkvm-s390.c710 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log()
727 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log()
1190 mutex_lock(&kvm->slots_lock); in kvm_s390_vm_set_migration()
1201 mutex_unlock(&kvm->slots_lock); in kvm_s390_vm_set_migration()
3052 mutex_lock(&kvm->slots_lock); in kvm_arch_vm_ioctl()
3054 mutex_unlock(&kvm->slots_lock); in kvm_arch_vm_ioctl()
3068 mutex_lock(&kvm->slots_lock); in kvm_arch_vm_ioctl()
3070 mutex_unlock(&kvm->slots_lock); in kvm_arch_vm_ioctl()
/Linux-v6.6/arch/arm64/kvm/
Dguest.c1042 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_mte_copy_tags()
1101 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_mte_copy_tags()
Darm.c104 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_enable_cap()
117 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_enable_cap()
/Linux-v6.6/include/linux/
Dkvm_host.h711 struct mutex slots_lock; member
916 lockdep_is_held(&kvm->slots_lock) || in kvm_get_bus()
994 lockdep_is_held(&kvm->slots_lock) || in __kvm_memslots()

12