]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: opencode gfn_to_page in kvm_vm_fault
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 16 Sep 2008 23:54:46 +0000 (20:54 -0300)
committerAvi Kivity <avi@redhat.com>
Wed, 15 Oct 2008 12:25:05 +0000 (14:25 +0200)
commit777b3f49d297e387866604093b635e5bc9b9d2a6
treed3df6d34bceb9905b033bb2e9e7e9bc6e0992542
parentbfadaded0dc323a1cf3f08b5068f12955b54cbaa
KVM: opencode gfn_to_page in kvm_vm_fault

kvm_vm_fault is invoked with mmap_sem held in read mode. Since gfn_to_page
will be converted to get_user_pages_fast, which requires this lock NOT
to be held, switch to opencoded get_user_pages.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/kvm_main.c