]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Don't do GFP_NOWAIT allocations
authorAvi Kivity <avi@qumranet.com>
Mon, 10 Sep 2007 08:28:17 +0000 (11:28 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:27 +0000 (10:18 +0200)
commit0f017914c324e02fa87845faedfeee740470607d
tree53184e9026b67710bd74615b818c53a6b62c3ab4
parentc8a354514292799fd0f5c3dbaa6132219aca6aac
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: Avi Kivity <avi@qumranet.com>
drivers/kvm/mmu.c