From: Keir Fraser Date: Tue, 17 Aug 2010 18:30:35 +0000 (+0100) Subject: xentrace: Fix buffer allocation to properly depend on T_INFO_PAGES X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11617 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f5c637a788e8b7f52b543df4bfb6b4ec21d72986;p=xen.git xentrace: Fix buffer allocation to properly depend on T_INFO_PAGES Signed-off-by: Andre Przywara --- diff --git a/xen/common/trace.c b/xen/common/trace.c index af2f46ed45..5b0c52e2a8 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -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 ) {