/Linux-v6.6/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() 199 mutex_unlock(&kvm->slots_lock); in kvm_vm_ioctl_unregister_coalesced_mmio()
|
D | eventfd.c | 868 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()
|
D | dirty_ring.c | 26 lockdep_assert_held(&kvm->slots_lock); in kvm_use_dirty_bitmap()
|
D | kvm_main.c | 392 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/ |
D | vgic-init.c | 238 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()
|
D | vgic-kvm-device.c | 109 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/ |
D | aia_aplic.c | 576 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()
|
D | aia_imsic.c | 1045 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/ |
D | i8259.c | 611 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()
|
D | i8254.c | 704 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()
|
D | debugfs.c | 111 mutex_lock(&kvm->slots_lock); in kvm_mmu_rmaps_stat_show() 133 mutex_unlock(&kvm->slots_lock); in kvm_mmu_rmaps_stat_show()
|
D | ioapic.c | 728 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()
|
D | lapic.c | 2602 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/ |
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()
|
/Linux-v6.6/Documentation/virt/kvm/ |
D | locking.rst | 16 - 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/ |
D | page_track.c | 82 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/ |
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() 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/ |
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 | 1880 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()
|
D | book3s_64_mmu_hv.c | 1992 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/ |
D | pv.c | 182 mutex_lock(&kvm->slots_lock); in kvm_s390_pv_alloc_vm() 184 mutex_unlock(&kvm->slots_lock); in kvm_s390_pv_alloc_vm()
|
D | kvm-s390.c | 710 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/ |
D | guest.c | 1042 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()
|
D | arm.c | 104 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/ |
D | kvm_host.h | 711 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()
|