KVM: MMU: Switch to mmu spinlock
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 21 Dec 2007 00:18:26 +0000 (19:18 -0500)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 16:01:21 +0000 (18:01 +0200)
commitaaee2c94f7a1f7726e360a6cfb40173bd552bcff
treee9066ae5509c349bfd6a187e85d52cc476e16a12
parentd7824fff896a1698a07a8046dc362f4500c302f7
KVM: MMU: Switch to mmu spinlock

Convert the synchronization of the shadow handling to a separate mmu_lock
spinlock.

Also guard fetch() by mmap_sem in read-mode to protect against alias
and memslot changes.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h
arch/x86/kvm/vmx.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c