]> git.baikalelectronics.ru Git - kernel.git/commit
xen: limit memory to architectural maximum
authorJuergen Gross <jgross@suse.com>
Fri, 4 Sep 2015 12:18:08 +0000 (14:18 +0200)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 8 Sep 2015 15:28:05 +0000 (16:28 +0100)
commita2efa9a32b462ea9621a8a19fddea2d2ed1b4f11
treeb951c1c743a923e20428105f1be794a5adf60219
parentf0a6f431ecd36add2c995e4a63495f94d8427126
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é <roger.pau@citrix.com>
Tested-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/setup.c