Re: [PATCH] mm: rename and document alloc_pages_exact_node
From: Paolo Bonzini <pbonzini@redhat.com>
Date: 2015-07-22 11:32:00
Also in:
kvm, linux-mm, lkml
From: Paolo Bonzini <pbonzini@redhat.com>
Date: 2015-07-22 11:32:00
Also in:
kvm, linux-mm, lkml
On 21/07/2015 15:55, Vlastimil Babka wrote:
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 2d73807..a8723a8 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c@@ -3158,7 +3158,7 @@ static struct vmcs *alloc_vmcs_cpu(int cpu) struct page *pages; struct vmcs *vmcs; - pages = alloc_pages_exact_node(node, GFP_KERNEL, vmcs_config.order); + pages = alloc_pages_prefer_node(node, GFP_KERNEL, vmcs_config.order); if (!pages) return NULL; vmcs = page_address(pages);
Even though there's a pretty strong preference for the "right" node, things can work if the node is the wrong one. The order is always zero in practice, so the allocation should succeed. Paolo