]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: move mmu pages calculated out of mmu lock
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Fri, 4 Mar 2011 10:59:21 +0000 (18:59 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:32 +0000 (13:08 -0300)
commit3cf8a10749fdd34fd154c3e621e06491787f7d2c
tree27cf74fd8a321df3be33954446236576b3b5b0a7
parentd68accecf977a7080537e81737c763bca2830023
KVM: MMU: move mmu pages calculated out of mmu lock

kvm_mmu_calculate_mmu_pages need to walk all memslots and it's protected by
kvm->slots_lock, so move it out of mmu spinlock

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c