• Avi Kivity's avatar
    KVM: MMU: Don't do GFP_NOWAIT allocations · 2e3e5882
    Avi Kivity authored
    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>
    2e3e5882
mmu.c 34.6 KB