mbox series

[J,0/2] Long kernel command line on s390x (LP: 1960580)

Message ID 20220217083045.931758-1-frank.heimes@canonical.com
Headers show
Series Long kernel command line on s390x (LP: 1960580) | expand

Message

Frank Heimes Feb. 17, 2022, 8:30 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1960580

Allow to handle command lines with a length of up to 4096 bytes by kernel.
It happened in the past that our supported command line size of 896 bytes
was sometimes too short - while x86, powerpc, and arm each support 2048 bytes.

This requires:
 - an ABI interface to the kernel image, so that tools can figure out if the
   kernel supports large command lines (might be a feature bitmap at a fixed
   location)
 - zipl, genprotimg, qemu, kexec-tools and changes (depending on the kernel
   side implementation)
 - in-kernel ipl support changes (IPL from reader)

Sven Schnelle (2):
  s390/kexec_file: move kernel image size check
  s390: support command lines longer than 896 bytes

 arch/s390/boot/head.S                 | 37 ++++++++---------------
 arch/s390/boot/ipl_parm.c             |  4 +--
 arch/s390/include/asm/setup.h         |  8 +++--
 arch/s390/include/uapi/asm/setup.h    |  2 --
 arch/s390/kernel/asm-offsets.c        |  1 +
 arch/s390/kernel/early.c              |  2 +-
 arch/s390/kernel/machine_kexec_file.c | 43 +++++++++++----------------
 7 files changed, 39 insertions(+), 58 deletions(-)