Skip to content
GitLab
  • Explore
  • Sign in
  • Register
  • xenomaixenomai
  • ipipe
  • Repository
  • ipipe
  • arch
  • x86
  • kvm
  • x86.c
Find file Blame History Permalink
  • Takuya Yoshikawa's avatar
    KVM: Make kvm_mmu_change_mmu_pages() take mmu_lock by itself · b34cb590
    Takuya Yoshikawa authored Jan 08, 2013
    
    
    No reason to make callers take mmu_lock since we do not need to protect
    kvm_mmu_change_mmu_pages() and kvm_mmu_slot_remove_write_access()
    together by mmu_lock in kvm_arch_commit_memory_region(): the former
    calls kvm_mmu_commit_zap_page() and flushes TLBs by itself.
    
    Note: we do not need to protect kvm->arch.n_requested_mmu_pages by
    mmu_lock as can be seen from the fact that it is read locklessly.
    
    Reviewed-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    Signed-off-by: default avatarTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
    Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
    b34cb590

Imprint & Privacy Policy