[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180718153326.b795e9ea7835432a56cd7011@linux-foundation.org>
Date: Wed, 18 Jul 2018 15:33:26 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Baoquan He <bhe@...hat.com>
Cc: linux-kernel@...r.kernel.org, robh+dt@...nel.org,
dan.j.williams@...el.com, nicolas.pitre@...aro.org,
josh@...htriplett.org, fengguang.wu@...el.com, bp@...e.de,
andy.shevchenko@...il.com, patrik.r.jakobsson@...il.com,
airlied@...ux.ie, kys@...rosoft.com, haiyangz@...rosoft.com,
sthemmin@...rosoft.com, dmitry.torokhov@...il.com,
frowand.list@...il.com, keith.busch@...el.com,
jonathan.derrick@...el.com, lorenzo.pieralisi@....com,
bhelgaas@...gle.com, tglx@...utronix.de, brijesh.singh@....com,
jglisse@...hat.com, thomas.lendacky@....com,
gregkh@...uxfoundation.org, baiyaowei@...s.chinamobile.com,
richard.weiyang@...il.com, devel@...uxdriverproject.org,
linux-input@...r.kernel.org, linux-nvdimm@...ts.01.org,
devicetree@...r.kernel.org, linux-pci@...r.kernel.org,
ebiederm@...ssion.com, vgoyal@...hat.com, dyoung@...hat.com,
yinghai@...nel.org, monstr@...str.eu, davem@...emloft.net,
chris@...kel.net, jcmvbkbc@...il.com, gustavo@...ovan.org,
maarten.lankhorst@...ux.intel.com, seanpaul@...omium.org,
linux-parisc@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
kexec@...ts.infradead.org
Subject: Re: [PATCH v7 4/4] kexec_file: Load kernel at top of system RAM if
required
On Wed, 18 Jul 2018 10:49:44 +0800 Baoquan He <bhe@...hat.com> wrote:
> For kexec_file loading, if kexec_buf.top_down is 'true', the memory which
> is used to load kernel/initrd/purgatory is supposed to be allocated from
> top to down. This is what we have been doing all along in the old kexec
> loading interface and the kexec loading is still default setting in some
> distributions. However, the current kexec_file loading interface doesn't
> do like this. The function arch_kexec_walk_mem() it calls ignores checking
> kexec_buf.top_down, but calls walk_system_ram_res() directly to go through
> all resources of System RAM from bottom to up, to try to find memory region
> which can contain the specific kexec buffer, then call locate_mem_hole_callback()
> to allocate memory in that found memory region from top to down. This brings
> confusion especially when KASLR is widely supported , users have to make clear
> why kexec/kdump kernel loading position is different between these two
> interfaces in order to exclude unnecessary noises. Hence these two interfaces
> need be unified on behaviour.
As far as I can tell, the above is the whole reason for the patchset,
yes? To avoid confusing users.
Is that sufficient? Can we instead simplify their lives by providing
better documentation or informative printks or better Kconfig text,
etc?
And who *are* the people who are performing this configuration? Random
system administrators? Linux distro engineers? If the latter then
they presumably aren't easily confused!
In other words, I'm trying to understand how much benefit this patchset
will provide to our users as a whole.
Powered by blists - more mailing lists