KVM: async_pf: do not warn on page allocation failures
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / virt / kvm / async_pf.c
index ea475cd035112a9db93ffa028a552df9be0724af..ca2d05a07b57da5ec2abd6c8eea15a49a092b4e7 100644 (file)
@@ -158,7 +158,7 @@ int kvm_setup_async_pf(struct kvm_vcpu *vcpu, gva_t gva, gfn_t gfn,
         * do alloc nowait since if we are going to sleep anyway we
         * may as well sleep faulting in page
         */
-       work = kmem_cache_zalloc(async_pf_cache, GFP_NOWAIT);
+       work = kmem_cache_zalloc(async_pf_cache, GFP_NOWAIT | __GFP_NOWARN);
        if (!work)
                return 0;