/kernel/linux/linux-5.10/virt/kvm/ |
D | coalesced_mmio.c | 155 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()
|
D | eventfd.c | 816 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()
|
D | kvm_main.c | 778 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/ |
D | i8259.c | 606 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()
|
D | i8254.c | 701 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()
|
D | ioapic.c | 699 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()
|
D | x86.c | 5141 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/ |
D | loongson_ipi.c | 208 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/ |
D | avc.c | 73 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/ |
D | pv.c | 132 mutex_lock(&kvm->slots_lock); in kvm_s390_pv_alloc_vm() 135 mutex_unlock(&kvm->slots_lock); in kvm_s390_pv_alloc_vm()
|
D | kvm-s390.c | 639 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/ |
D | vgic-mmio-v3.c | 727 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()
|
D | vgic-mmio.c | 1097 mutex_lock(&kvm->slots_lock); in vgic_register_dist_iodev() 1100 mutex_unlock(&kvm->slots_lock); in vgic_register_dist_iodev()
|
D | vgic-its.c | 1810 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/ |
D | locking.rst | 14 - 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/ |
D | mpic.c | 1475 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()
|
D | book3s_pr.c | 1891 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()
|
D | book3s_64_mmu_hv.c | 1996 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()
|
D | book3s_hv.c | 4518 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/ |
D | avic.c | 238 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/ |
D | kvm_host.h | 449 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/ |
D | vmx.c | 3657 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/ |
D | mmu.c | 5439 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()
|