]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
KVM: remove the usage of the mmap_sem for the protection of the memory slots.
authorIzik Eidus <izike@qumranet.com>
Sun, 10 Feb 2008 16:04:15 +0000 (18:04 +0200)
committerAvi Kivity <avi@qumranet.com>
Tue, 4 Mar 2008 13:19:40 +0000 (15:19 +0200)
commit72dc67a69690288538142df73a7e3ac66fea68dc
treef40cc5ef0c66686a469977fd438e5b6786f16280
parentc7ac679c160db864810920df61a6ed14275011aa
KVM: remove the usage of the mmap_sem for the protection of the memory slots.

This patch replaces the mmap_sem lock for the memory slots with a new
kvm private lock, it is needed beacuse untill now there were cases where
kvm accesses user memory while holding the mmap semaphore.

Signed-off-by: Izik Eidus <izike@qumranet.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
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c