public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Morse <james.morse-5wv7dgnIgG8@public.gmane.org>
To: AKASHI Takahiro
	<takahiro.akashi-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
	jhugo-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
	Bhupesh Sharma <bhsharma-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	tbaicar-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
	kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	Bhupesh SHARMA
	<bhupesh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [RFC] arm64: extra entries in /proc/iomem for kexec
Date: Tue, 27 Mar 2018 14:32:49 +0100	[thread overview]
Message-ID: <da2989ec-7fa5-b044-3237-4e75f2fe6d98@arm.com> (raw)
In-Reply-To: <20180327101654.GB14737-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

Hi Akashi,

On 27/03/18 11:16, AKASHI Takahiro wrote:
> On Tue, Mar 20, 2018 at 01:18:34AM +0530, Bhupesh Sharma wrote:
>> On 03/14/2018 01:59 PM, AKASHI Takahiro wrote:
>>> Currently, there is a inconsistent view between (A) and the mainline's:
>>> see (A-1) and (B-1). If this is really a matter, I can fix it.
>>> Kexec-tools can be easily modified to accept both formats, though.

Ooer, what needs changing in kexec-tools? What happens if someone doesn't update
userspace at the same time?

Is there a format which doesn't require a user-space change, (and shouldn't we
pick that one?)


>>> 2. How should we determine which regions be exported in /proc/iomem?
>>>
>>>  a. Trust all the memblock_reserve'd regions as my previous patch [3] does.
>>>
>>>     As I said, it's a kind of "overkill." Some of regions, say fdt, are
>>>     not required to be preserved across kexec.
>>
>>
>> I think we should preserve all the memblock_reserve'd regions. So +1 on this
>> approach from my side. I believe it might help avoid issues we have seen in
>> the past with 'kexec-tools' _incorrectly_ determining which regions to pick
>> from the '/proc/iomem'.
> 
> As I said in my reply to Ard's comment, I now know *overkill* is not a big
> issue and I will go for this approach.

/sys/kernel/debug/memblock/reserved has all kinds of weird stuff in it,
including some smaller-than-a-page reservations that appear to come from the
percpu allocator.

I agree it will make the implementation simpler, and reserving 'too much' isn't
an issue.


Thanks,

James

  parent reply	other threads:[~2018-03-27 13:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-14  8:29 [RFC] arm64: extra entries in /proc/iomem for kexec AKASHI Takahiro
     [not found] ` <20180314082941.GM25863-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-03-14  8:39   ` Ard Biesheuvel
     [not found]     ` <CAKv+Gu9AMS4sGoRsw0KNv6+3WZPXCJRfbxBnjaqnZugiZe4o9w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-15  4:41       ` AKASHI Takahiro
     [not found]         ` <20180315044109.GN25863-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-03-15  7:33           ` Ard Biesheuvel
2018-03-19 19:48 ` Bhupesh Sharma
     [not found]   ` <2d2e1be6-b925-1595-9b6e-76dd270d396d-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-03-27 10:16     ` AKASHI Takahiro
     [not found]       ` <20180327101654.GB14737-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-03-27 13:32         ` James Morse [this message]
     [not found]           ` <da2989ec-7fa5-b044-3237-4e75f2fe6d98-5wv7dgnIgG8@public.gmane.org>
2018-04-02  1:53             ` AKASHI Takahiro
     [not found]               ` <20180402015330.GA27603-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-04-05  2:42                 ` AKASHI Takahiro
     [not found]                   ` <20180405024203.GD19607-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-04-12 16:01                     ` James Morse
2018-04-16 10:08                       ` AKASHI Takahiro
     [not found]                         ` <20180416100831.GF13168-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-04-24 16:08                           ` James Morse
2018-04-25  9:20                             ` AKASHI Takahiro
     [not found]                               ` <20180425092011.GC21197-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-04-25 13:22                                 ` James Morse
     [not found]                                   ` <4ae3fefb-5800-ab86-5bcd-2638602c5c3d-5wv7dgnIgG8@public.gmane.org>
2018-04-26  7:40                                     ` AKASHI Takahiro
     [not found]                                       ` <20180426074043.GD21197-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2018-04-26 14:26                                         ` James Morse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da2989ec-7fa5-b044-3237-4e75f2fe6d98@arm.com \
    --to=james.morse-5wv7dgnigg8@public.gmane.org \
    --cc=ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=bhsharma-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=bhupesh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=jhugo-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
    --cc=kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=takahiro.akashi-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=tbaicar-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox