All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/mm: pod: Use the correct memory flags for alloc_domheap_page{, s}
@ 2015-10-22 15:43 Julien Grall
  2015-10-22 15:48 ` Jan Beulich
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Grall @ 2015-10-22 15:43 UTC (permalink / raw)
  To: xen-devel
  Cc: Julien Grall, George Dunlap, Keir Fraser, Jan Beulich,
	Andrew Cooper

The last parameter of alloc_domheap_page{s,} contain the memory flags and
not the order of the allocation.

Use 0 as it was before 1069d63c5ef2510d08b83b2171af660e5bb18c63
"x86/mm/p2m: use defines for page sizes".

Note that PAGE_ORDER_4K is also equal to 0 so the behavior stays the
same.

Signed-off-by: Julien Grall <julien.grall@citrix.com>

---

Cc: George Dunlap <george.dunlap@eu.citrix.com>
Cc: Keir Fraser <keir@xen.org>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
---
 xen/arch/x86/mm/p2m-pod.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/arch/x86/mm/p2m-pod.c b/xen/arch/x86/mm/p2m-pod.c
index 901da37..61cca6f 100644
--- a/xen/arch/x86/mm/p2m-pod.c
+++ b/xen/arch/x86/mm/p2m-pod.c
@@ -222,7 +222,7 @@ p2m_pod_set_cache_target(struct p2m_domain *p2m, unsigned long pod_target, int p
         else
             order = PAGE_ORDER_4K;
     retry:
-        page = alloc_domheap_pages(d, order, PAGE_ORDER_4K);
+        page = alloc_domheap_pages(d, order, 0);
         if ( unlikely(page == NULL) )
         {
             if ( order == PAGE_ORDER_2M )
@@ -477,7 +477,7 @@ p2m_pod_offline_or_broken_replace(struct page_info *p)
 
     free_domheap_page(p);
 
-    p = alloc_domheap_page(d, PAGE_ORDER_4K);
+    p = alloc_domheap_page(d, 0);
     if ( unlikely(!p) )
         return;
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-23  6:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-22 15:43 [PATCH] x86/mm: pod: Use the correct memory flags for alloc_domheap_page{, s} Julien Grall
2015-10-22 15:48 ` Jan Beulich
2015-10-22 16:13   ` Julien Grall
2015-10-22 16:54     ` Dario Faggioli
2015-10-23  6:45     ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.