diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-08-17 19:30:35 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-08-17 19:30:35 +0100 |
commit | f5c637a788e8b7f52b543df4bfb6b4ec21d72986 (patch) | |
tree | 5d9bea54d1bab7da198c947fda3883c079069f02 /xen/common/trace.c | |
parent | 299ac6622b7c89db1de33627dd680862eacda394 (diff) | |
download | xen-f5c637a788e8b7f52b543df4bfb6b4ec21d72986.tar.gz xen-f5c637a788e8b7f52b543df4bfb6b4ec21d72986.tar.bz2 xen-f5c637a788e8b7f52b543df4bfb6b4ec21d72986.zip |
xentrace: Fix buffer allocation to properly depend on T_INFO_PAGES
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Diffstat (limited to 'xen/common/trace.c')
-rw-r--r-- | xen/common/trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 ) { |