]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Avoid calling gfn_to_page() in mmu_set_spte()
authorAvi Kivity <avi@qumranet.com>
Sun, 30 Dec 2007 10:29:05 +0000 (12:29 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 16:01:21 +0000 (18:01 +0200)
commit25f5cb1e4491c63e459436c34ed48819d1f85089
tree249e23ec224bc621bea1ef24fa83f5a749d6b35b
parent363f290047e93a4644c6890adcd8306d35632d08
KVM: MMU: Avoid calling gfn_to_page() in mmu_set_spte()

Since gfn_to_page() is a sleeping function, and we want to make the core mmu
spinlocked, we need to pass the page from the walker context (which can sleep)
to the shadow context (which cannot).

[marcelo: avoid recursive locking of mmap_sem]

Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h
include/asm-x86/kvm_host.h