]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Fix rare oops on guest context switch
authorAvi Kivity <avi@qumranet.com>
Fri, 14 Sep 2007 17:26:06 +0000 (20:26 +0300)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 14 Sep 2007 20:59:55 +0000 (13:59 -0700)
commit1a3f6be17b147ab249a82c1dc54a8803421ac880
treedafe050aef12ea4bbac4ffb77070d8ec416a0838
parent87c8c7f3d15f4dcfce8d4edf0716fa3a94258e43
KVM: MMU: Fix rare oops on guest context switch

A guest context switch to an uncached cr3 can require allocation of
shadow pages, but we only recycle shadow pages in kvm_mmu_page_fault().

Move shadow page recycling to mmu_topup_memory_caches(), which is called
from both the page fault handler and from guest cr3 reload.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/kvm/kvm.h
drivers/kvm/mmu.c