xentrace: Fix buffer allocation to properly depend on T_INFO_PAGES
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 17 Aug 2010 18:30:35 +0000 (19:30 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 17 Aug 2010 18:30:35 +0000 (19:30 +0100)
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
xen/common/trace.c

index af2f46ed4590593b6709309dfedf9fa24cbd8709..5b0c52e2a8df454e61674f985c5651829152fa59 100644 (file)
@@ -321,9 +321,9 @@ void __init init_trace_bufs(void)
     /* Calculate offset in u32 of first mfn */
     calc_tinfo_first_offset();
 
-    /* t_info size fixed at 2 pages for now.  That should be big enough / small enough
-     * until it's worth making it dynamic. */
-    t_info = alloc_xenheap_pages(1, 0);
+    /* t_info size is fixed for now. Currently this works great, so there
+     * seems to be no need to make it dynamic. */
+    t_info = alloc_xenheap_pages(get_order_from_pages(T_INFO_PAGES), 0);
 
     if ( t_info == NULL )
     {