Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
202 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_unregister_coalesced_mmio()
Deventfd.c816 mutex_lock(&kvm->slots_lock); in kvm_assign_ioeventfd_idx()
834 mutex_unlock(&kvm->slots_lock); in kvm_assign_ioeventfd_idx()
839 mutex_unlock(&kvm->slots_lock); in kvm_assign_ioeventfd_idx()
864 mutex_lock(&kvm->slots_lock); in kvm_deassign_ioeventfd_idx()
887 mutex_unlock(&kvm->slots_lock); in kvm_deassign_ioeventfd_idx()
Dkvm_main.c778 mutex_init(&kvm->slots_lock); in kvm_create_vm()
1434 mutex_lock(&kvm->slots_lock); in kvm_set_memory_region()
1436 mutex_unlock(&kvm->slots_lock); in kvm_set_memory_region()
1609 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log()
1613 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log()
1700 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_clear_dirty_log()
1704 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_clear_dirty_log()
/kernel/linux/linux-5.10/arch/x86/kvm/
Di8259.c606 mutex_lock(&kvm->slots_lock); in kvm_pic_init()
620 mutex_unlock(&kvm->slots_lock); in kvm_pic_init()
633 mutex_unlock(&kvm->slots_lock); in kvm_pic_init()
647 mutex_lock(&kvm->slots_lock); in kvm_pic_destroy()
651 mutex_unlock(&kvm->slots_lock); in kvm_pic_destroy()
Di8254.c701 mutex_lock(&kvm->slots_lock); in kvm_create_pit()
716 mutex_unlock(&kvm->slots_lock); in kvm_create_pit()
723 mutex_unlock(&kvm->slots_lock); in kvm_create_pit()
738 mutex_lock(&kvm->slots_lock); in kvm_free_pit()
741 mutex_unlock(&kvm->slots_lock); in kvm_free_pit()
Dioapic.c699 mutex_lock(&kvm->slots_lock); in kvm_ioapic_init()
702 mutex_unlock(&kvm->slots_lock); in kvm_ioapic_init()
719 mutex_lock(&kvm->slots_lock); in kvm_ioapic_destroy()
721 mutex_unlock(&kvm->slots_lock); in kvm_ioapic_destroy()
Dx86.c5141 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_set_nr_mmu_pages()
5146 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_set_nr_mmu_pages()
10714 mutex_lock(&kvm->slots_lock); in kvm_arch_destroy_vm()
10720 mutex_unlock(&kvm->slots_lock); in kvm_arch_destroy_vm()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
477 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_reclaim_node()
642 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_insert()
873 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_update_node()
953 lock = &avc->avc_cache.slots_lock[i]; in avc_flush()
/kernel/linux/linux-5.10/arch/s390/kvm/
Dpv.c132 mutex_lock(&kvm->slots_lock); in kvm_s390_pv_alloc_vm()
135 mutex_unlock(&kvm->slots_lock); in kvm_s390_pv_alloc_vm()
Dkvm-s390.c639 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log()
656 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log()
1066 mutex_lock(&kvm->slots_lock); in kvm_s390_vm_set_migration()
1077 mutex_unlock(&kvm->slots_lock); in kvm_s390_vm_set_migration()
2456 mutex_lock(&kvm->slots_lock); in kvm_arch_vm_ioctl()
2458 mutex_unlock(&kvm->slots_lock); in kvm_arch_vm_ioctl()
2472 mutex_lock(&kvm->slots_lock); in kvm_arch_vm_ioctl()
2474 mutex_unlock(&kvm->slots_lock); in kvm_arch_vm_ioctl()
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/
Dvgic-mmio-v3.c727 mutex_lock(&kvm->slots_lock); in vgic_register_redist_iodev()
730 mutex_unlock(&kvm->slots_lock); in vgic_register_redist_iodev()
759 mutex_lock(&kvm->slots_lock); in vgic_register_all_redist_iodevs()
764 mutex_unlock(&kvm->slots_lock); in vgic_register_all_redist_iodevs()
Dvgic-mmio.c1097 mutex_lock(&kvm->slots_lock); in vgic_register_dist_iodev()
1100 mutex_unlock(&kvm->slots_lock); in vgic_register_dist_iodev()
Dvgic-its.c1810 mutex_lock(&kvm->slots_lock); in vgic_register_its_iodev()
1827 mutex_unlock(&kvm->slots_lock); in vgic_register_its_iodev()
/kernel/linux/linux-5.10/Documentation/virt/kvm/
Dlocking.rst14 - kvm->lock is taken outside kvm->slots_lock and kvm->irq_lock
16 - kvm->slots_lock is taken outside kvm->irq_lock, though acquiring
/kernel/linux/linux-5.10/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.c1891 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log_pr()
1911 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log_pr()
Dbook3s_64_mmu_hv.c1996 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_get_htab_fd()
2000 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_get_htab_fd()
Dbook3s_hv.c4518 mutex_lock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log_hv()
4570 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_get_dirty_log_hv()
/kernel/linux/linux-5.10/arch/x86/kvm/svm/
Davic.c238 mutex_lock(&kvm->slots_lock); in avic_update_access_page()
257 mutex_unlock(&kvm->slots_lock); in avic_update_access_page()
/kernel/linux/linux-5.10/include/linux/
Dkvm_host.h449 struct mutex slots_lock; member
571 lockdep_is_held(&kvm->slots_lock) || in kvm_get_bus()
661 lockdep_is_held(&kvm->slots_lock) || in __kvm_memslots()
/kernel/linux/linux-5.10/arch/x86/kvm/vmx/
Dvmx.c3657 mutex_lock(&kvm->slots_lock); in init_rmode_identity_map()
3686 mutex_unlock(&kvm->slots_lock); in init_rmode_identity_map()
3710 mutex_lock(&kvm->slots_lock); in alloc_apic_access_page()
3731 mutex_unlock(&kvm->slots_lock); in alloc_apic_access_page()
4747 mutex_lock(&kvm->slots_lock); in vmx_set_tss_addr()
4750 mutex_unlock(&kvm->slots_lock); in vmx_set_tss_addr()
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
Dmmu.c5439 lockdep_assert_held(&kvm->slots_lock); in kvm_mmu_zap_all_fast()
5633 lockdep_assert_held(&kvm->slots_lock); in kvm_arch_flush_remote_tlbs_memslot()
5873 mutex_lock(&kvm->slots_lock); in set_nx_huge_pages()
5875 mutex_unlock(&kvm->slots_lock); in set_nx_huge_pages()