From: Avi Kivity Date: Fri, 14 Sep 2007 17:26:06 +0000 (+0300) Subject: KVM: MMU: Fix rare oops on guest context switch X-Git-Tag: v2.6.23-rc7~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22d95b1282810f5af599ee292b3fc443aefbdad0;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed