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)
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>

No differences found