Skip to content
Commit eb787d10 authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@qumranet.com>
parent aaee2c94
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment