KVM: MMU: Move kvm_free_some_pages() into critical section
authorAvi Kivity <avi@qumranet.com>
Mon, 31 Dec 2007 13:27:49 +0000 (15:27 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 16:01:21 +0000 (18:01 +0200)
commiteb787d10af8045dd00d4d4c9a8e90fa495f1b0c1
tree6594a4f1ba3718d01a8682aeadb31a0f61ae6f86
parentaaee2c94f7a1f7726e360a6cfb40173bd552bcff
KVM: MMU: Move kvm_free_some_pages() into critical section

If some other cpu steals mmu pages between our check and an attempt to
allocate, we can run out of mmu pages.  Fix by moving the check into the
same critical section as the allocation.

Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h
This page took 0.034436 seconds and 5 git commands to generate.