[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xentrace: Fix buffer allocation to properly depend on T_INFO_PAGES



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1282069835 -3600
# Node ID 542e8cd16a6cf036e89b597ba6343245fcaafa25
# Parent  ca50b3d02b29b4d153b163921c7dc147bfcb6cfe
xentrace: Fix buffer allocation to properly depend on T_INFO_PAGES

Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx>
---
 xen/common/trace.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r ca50b3d02b29 -r 542e8cd16a6c xen/common/trace.c
--- a/xen/common/trace.c        Tue Aug 17 17:23:25 2010 +0100
+++ b/xen/common/trace.c        Tue Aug 17 19:30:35 2010 +0100
@@ -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 )
     {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.