Lines Matching refs:mmu_lock
1980 cond_resched_lock(&vcpu->kvm->mmu_lock); in mmu_sync_children()
2327 spin_lock(&kvm->mmu_lock); in kvm_mmu_change_mmu_pages()
2341 spin_unlock(&kvm->mmu_lock); in kvm_mmu_change_mmu_pages()
2352 spin_lock(&kvm->mmu_lock); in kvm_mmu_unprotect_page()
2360 spin_unlock(&kvm->mmu_lock); in kvm_mmu_unprotect_page()
3041 spin_lock(&vcpu->kvm->mmu_lock); in nonpaging_map()
3049 spin_unlock(&vcpu->kvm->mmu_lock); in nonpaging_map()
3055 spin_unlock(&vcpu->kvm->mmu_lock); in nonpaging_map()
3075 spin_lock(&vcpu->kvm->mmu_lock); in mmu_free_roots()
3082 spin_unlock(&vcpu->kvm->mmu_lock); in mmu_free_roots()
3087 spin_lock(&vcpu->kvm->mmu_lock); in mmu_free_roots()
3102 spin_unlock(&vcpu->kvm->mmu_lock); in mmu_free_roots()
3124 spin_lock(&vcpu->kvm->mmu_lock); in mmu_alloc_direct_roots()
3129 spin_unlock(&vcpu->kvm->mmu_lock); in mmu_alloc_direct_roots()
3136 spin_lock(&vcpu->kvm->mmu_lock); in mmu_alloc_direct_roots()
3144 spin_unlock(&vcpu->kvm->mmu_lock); in mmu_alloc_direct_roots()
3175 spin_lock(&vcpu->kvm->mmu_lock); in mmu_alloc_shadow_roots()
3181 spin_unlock(&vcpu->kvm->mmu_lock); in mmu_alloc_shadow_roots()
3209 spin_lock(&vcpu->kvm->mmu_lock); in mmu_alloc_shadow_roots()
3216 spin_unlock(&vcpu->kvm->mmu_lock); in mmu_alloc_shadow_roots()
3292 spin_lock(&vcpu->kvm->mmu_lock); in kvm_mmu_sync_roots()
3294 spin_unlock(&vcpu->kvm->mmu_lock); in kvm_mmu_sync_roots()
3499 spin_lock(&vcpu->kvm->mmu_lock); in tdp_page_fault()
3507 spin_unlock(&vcpu->kvm->mmu_lock); in tdp_page_fault()
3512 spin_unlock(&vcpu->kvm->mmu_lock); in tdp_page_fault()
4201 spin_lock(&vcpu->kvm->mmu_lock); in kvm_mmu_pte_write()
4234 spin_unlock(&vcpu->kvm->mmu_lock); in kvm_mmu_pte_write()
4387 spin_lock(&kvm->mmu_lock); in kvm_mmu_slot_remove_write_access()
4402 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) in kvm_mmu_slot_remove_write_access()
4403 cond_resched_lock(&kvm->mmu_lock); in kvm_mmu_slot_remove_write_access()
4407 spin_unlock(&kvm->mmu_lock); in kvm_mmu_slot_remove_write_access()
4473 spin_lock(&kvm->mmu_lock); in kvm_mmu_zap_collapsible_sptes()
4483 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) { in kvm_mmu_zap_collapsible_sptes()
4488 cond_resched_lock(&kvm->mmu_lock); in kvm_mmu_zap_collapsible_sptes()
4495 spin_unlock(&kvm->mmu_lock); in kvm_mmu_zap_collapsible_sptes()
4508 spin_lock(&kvm->mmu_lock); in kvm_mmu_slot_leaf_clear_dirty()
4518 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) in kvm_mmu_slot_leaf_clear_dirty()
4519 cond_resched_lock(&kvm->mmu_lock); in kvm_mmu_slot_leaf_clear_dirty()
4522 spin_unlock(&kvm->mmu_lock); in kvm_mmu_slot_leaf_clear_dirty()
4546 spin_lock(&kvm->mmu_lock); in kvm_mmu_slot_largepage_remove_write_access()
4561 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) in kvm_mmu_slot_largepage_remove_write_access()
4562 cond_resched_lock(&kvm->mmu_lock); in kvm_mmu_slot_largepage_remove_write_access()
4565 spin_unlock(&kvm->mmu_lock); in kvm_mmu_slot_largepage_remove_write_access()
4584 spin_lock(&kvm->mmu_lock); in kvm_mmu_slot_set_dirty()
4598 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) in kvm_mmu_slot_set_dirty()
4599 cond_resched_lock(&kvm->mmu_lock); in kvm_mmu_slot_set_dirty()
4603 spin_unlock(&kvm->mmu_lock); in kvm_mmu_slot_set_dirty()
4644 cond_resched_lock(&kvm->mmu_lock)) { in kvm_zap_obsolete_pages()
4675 spin_lock(&kvm->mmu_lock); in kvm_mmu_invalidate_zap_all_pages()
4691 spin_unlock(&kvm->mmu_lock); in kvm_mmu_invalidate_zap_all_pages()
4743 spin_lock(&kvm->mmu_lock); in mmu_shrink_scan()
4756 spin_unlock(&kvm->mmu_lock); in mmu_shrink_scan()