From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759163AbbIDOKK (ORCPT ); Fri, 4 Sep 2015 10:10:10 -0400 Received: from smtp.citrix.com ([66.165.176.89]:63840 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759059AbbIDOKJ (ORCPT ); Fri, 4 Sep 2015 10:10:09 -0400 X-IronPort-AV: E=Sophos;i="5.17,469,1437436800"; d="scan'208";a="297705279" Subject: Re: [Xen-devel] [PATCH] xen: limit memory to architectural maximum To: Juergen Gross , , , , , References: <1441369088-11680-1-git-send-email-jgross@suse.com> From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Message-ID: <55E9A5C9.1030201@citrix.com> Date: Fri, 4 Sep 2015 16:08:09 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1441369088-11680-1-git-send-email-jgross@suse.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-DLP: MIA1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org El 04/09/15 a les 14.18, Juergen Gross ha escrit: > When a pv-domain (including dom0) is started it tries to size it's > p2m list according to the maximum possible memory amount it ever can > achieve. Limit the initial maximum memory size to the architectural > limit of the hardware in order to avoid overflows during remapping > of memory. > > This problem will occur when dom0 is started with an initial memory > size being a multiple of 1GB, but without specifying it's maximum > memory size. The kernel must be configured without > CONFIG_XEN_BALLOON_MEMORY_HOTPLUG for the problem to happen. > > Reported-by: Roger Pau Monné > Signed-off-by: Juergen Gross Tested-by: Roger Pau Monné From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Subject: Re: [Xen-devel] [PATCH] xen: limit memory to architectural maximum Date: Fri, 4 Sep 2015 16:08:09 +0200 Message-ID: <55E9A5C9.1030201@citrix.com> References: <1441369088-11680-1-git-send-email-jgross@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1441369088-11680-1-git-send-email-jgross@suse.com> Sender: linux-kernel-owner@vger.kernel.org To: Juergen Gross , linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com, konrad.wilk@oracle.com, david.vrabel@citrix.com, boris.ostrovsky@oracle.com List-Id: xen-devel@lists.xenproject.org El 04/09/15 a les 14.18, Juergen Gross ha escrit: > When a pv-domain (including dom0) is started it tries to size it's > p2m list according to the maximum possible memory amount it ever can > achieve. Limit the initial maximum memory size to the architectural > limit of the hardware in order to avoid overflows during remapping > of memory. >=20 > This problem will occur when dom0 is started with an initial memory > size being a multiple of 1GB, but without specifying it's maximum > memory size. The kernel must be configured without > CONFIG_XEN_BALLOON_MEMORY_HOTPLUG for the problem to happen. >=20 > Reported-by: Roger Pau Monn=C3=A9 > Signed-off-by: Juergen Gross Tested-by: Roger Pau Monn=C3=A9