From: Heiko Carstens Date: Tue, 30 Apr 2013 08:34:04 +0000 (+0200) Subject: s390/mem_detect: limit memory detection loop to "mem=" parameter X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~30^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1bd59c5cc247d1d02588ff0a4e86a0cc5f9733;p=pandora-kernel.git s390/mem_detect: limit memory detection loop to "mem=" parameter The current memory detection loop will detect all present memory of a machine. This is true even if the user specified the "mem=" parameter on the kernel command line. This can be a problem since the memory detection may cause a fully populated host page table for the guest, even for those parts of the memory that the guest will never use afterwards. So fix this and only detect memory up to a user supplied "mem=" limit if specified. Reported-by: Michael Johanssen Reviewed-by: Michael Holzheu Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed