From: Ian Campbell Subject: Re: [PATCH] libxc: Make conversion from page count to bytes 32-bit safe Date: Mon, 30 Mar 2015 10:09:07 +0100 Message-ID: <1427706547.13935.226.camel@citrix.com> References: <1427393324-1956-1-git-send-email-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427393324-1956-1-git-send-email-boris.ostrovsky@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Boris Ostrovsky Cc: wei.liu2@citrix.com, xen-devel@lists.xen.org, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org 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 left. > > On 32-bit dom0 this may result in losing upper bits since total_pages is > a 32-bit type. > > Signed-off-by: Boris Ostrovsky Acked + applied, thanks.