xentrace: correct formula to calculate t_info_pages
authorOlaf Hering <olaf@aepfle.de>
Sat, 2 Apr 2011 14:50:19 +0000 (15:50 +0100)
committerOlaf Hering <olaf@aepfle.de>
Sat, 2 Apr 2011 14:50:19 +0000 (15:50 +0100)
commitfbf96e67255eed8445137a9af781f2022e9ba025
treec86aa2e4568e52202b2b55ac5b85f2bf5a00f6e5
parent0be477c900b73d6a2d7cceb0cded9df0d48179f2
xentrace: correct formula to calculate t_info_pages

The current formula to calculate t_info_pages, based on the initial
code, is slightly incorrect. It may allocate more than needed.
Each cpu has some pages/mfns stored as uint32_t.
That list is stored with an offset at tinfo.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/trace.c