From: Juergen Gross Date: Fri, 4 Sep 2015 12:18:08 +0000 (+0200) Subject: xen: limit memory to architectural maximum X-Git-Tag: omap-for-v4.3/fixes-rc1~72^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9e444b5aaa900bb4310da411315b6947c53e37;p=pandora-kernel.git xen: limit memory to architectural maximum 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é Tested-by: Roger Pau Monné Signed-off-by: Juergen Gross Signed-off-by: David Vrabel --- Reading git-diff-tree failed