Re: [Xen-devel] [PATCH] libxc: Make conversion from page count to bytes 32-bit safe

2015-03-30 Thread Ian Campbell
On Thu, 2015-03-26 at 14:08 -0400, Boris Ostrovsky wrote: > Commit ba59e2ce935d ("libxc: allocate memory with vNUMA information for > PV guest") creates default vNUMA layout with a single range containing > all memory. The end of the range is calculated by shifting > dom->total_pages by 12 to the l

[Xen-devel] [PATCH] libxc: Make conversion from page count to bytes 32-bit safe

2015-03-26 Thread Boris Ostrovsky
Commit ba59e2ce935d ("libxc: allocate memory with vNUMA information for PV guest") creates default vNUMA layout with a single range containing all memory. The end of the range is calculated by shifting dom->total_pages by 12 to the left. On 32-bit dom0 this may result in losing upper bits since to