kexec.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] s390: add support for extended cmdline length
@ 2021-12-15 10:18 Sven Schnelle
  2021-12-15 10:18 ` [PATCH v2 1/5] s390: add variable command line size Sven Schnelle
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Sven Schnelle @ 2021-12-15 10:18 UTC (permalink / raw)
  To: Simon Horman; +Cc: kexec, prudo, Sven Schnelle

Hi,

this patchset adds support for extended command line lengths on s390.
The former limit of 896 has been too short in a some configurations. The
linux kernel now provides an additional field in the parameter area
which contains the maximum allowed command line length. In older kernels
this field is zero. In that case the old limit of 896 bytes is used.
This was introduced with 5ecb2da660ab ("s390: support command lines
longer than 896 bytes") in linux.

And while at it, also add the --reuse-cmdline option and use
KEXEC_ALL_OPTIONS.

Changes in v2:

- add slurp_proc_file() to read proc files without knowing the size upfront
- move command_line string from global to function scope

Sven Schnelle (5):
  s390: add variable command line size
  s390: use KEXEC_ALL_OPTIONS
  add slurp_proc_file()
  use slurp_proc_file() in get_command_line()
  s390: add support for --reuse-cmdline

 kexec/arch/s390/crashdump-s390.c       |  3 +-
 kexec/arch/s390/include/arch/options.h | 10 +--
 kexec/arch/s390/kexec-image.c          | 84 ++++++++++++++++----------
 kexec/arch/s390/kexec-s390.h           | 21 ++++---
 kexec/kexec.c                          | 58 +++++++++++++-----
 5 files changed, 114 insertions(+), 62 deletions(-)

-- 
2.32.0


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-12-16  7:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-15 10:18 [PATCH v2 0/5] s390: add support for extended cmdline length Sven Schnelle
2021-12-15 10:18 ` [PATCH v2 1/5] s390: add variable command line size Sven Schnelle
2021-12-15 10:18 ` [PATCH v2 2/5] s390: use KEXEC_ALL_OPTIONS Sven Schnelle
2021-12-15 10:18 ` [PATCH v2 3/5] add slurp_proc_file() Sven Schnelle
2021-12-15 17:36   ` Philipp Rudo
2021-12-16  7:28     ` Sven Schnelle
2021-12-15 10:18 ` [PATCH v2 4/5] use slurp_proc_file() in get_command_line() Sven Schnelle
2021-12-15 10:18 ` [PATCH v2 5/5] s390: add support for --reuse-cmdline Sven Schnelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).