[PATCH] kexec-tools: s390: Fix memory detection for memory hotplug

Simon Horman horms at verge.net.au
Mon Oct 31 02:40:24 EDT 2011


On Fri, Oct 28, 2011 at 03:35:35PM +0200, Michael Holzheu wrote:
> Hello Simon,
> 
> Here comes the patch...
> 
> On Thu, 2011-10-27 at 07:31 +0900, Simon Horman wrote:
> > On Tue, Oct 25, 2011 at 07:17:17PM +0200, Michael Holzheu wrote:
> > > To fix this I could parse /sys/devices/system/memory and exclude each
> > > memory chunk that in not online from the /proc/iomem info. Do you think
> > > that this approach is fine or is there a better solution?
> > 
> > Hi Michael,
> > 
> > that sounds like a reasonable approach to me.
> > IIRC, kexec xen on ia64 makes use of an alternate iomem file,
> > and this seems to be another example of /proc/iomem not being
> > the right source of information.
> 
> From: Michael Holzheu <holzheu at linux.vnet.ibm.com>
> 
> Currently on s390 for memory detection only the "/proc/iomem" file is used.
> This file does not include information on offlined memory chunks. With this
> patch the memory hotplug information is read from "/sys/devices/system/memory"
> and is added to the "/proc/iomem" info.
> 
> Also the MAX_MEMORY_RANGES count is increased to 1024 in order to support
> systems with many memory holes.

Thanks Michael, applied.



More information about the kexec mailing list