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

KVM: MMU: Don't do GFP_NOWAIT allocations



Before preempt notifiers, kvm needed to allocate memory with GFP_NOWAIT so
as not to have to enable preemption and take a heavyweight exit.  On oom, we'd
fall back to a GFP_KERNEL allocation.

With preemption notifiers, we can do a GFP_KERNEL allocation, and perform
the heavyweight exit only if the kernel decides to put us to sleep.

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent cbdd1bea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment