s390x/ipl: support extended kernel command line size
authorMarc Hartmayer <mhartmay@linux.ibm.com>
Mon, 22 Nov 2021 11:29:09 +0000 (12:29 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 18 Jan 2022 13:50:43 +0000 (14:50 +0100)
commitb2173046a64beed76715f310f98538f159276af1
treec5c8f87c5a299a4b9b9b4159cf639e5053103698
parent6a6d3dfd6ed57d624dbbef116c8328d70d49130f
s390x/ipl: support extended kernel command line size

In the past s390 used a fixed command line length of 896 bytes. This has changed
with the Linux commit 5ecb2da660ab ("s390: support command lines longer than 896
bytes"). There is now a parm area indicating the maximum command line size. This
parm area has always been initialized to zero, so with older kernels this field
would read zero and we must then assume that only 896 bytes are available.

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Viktor Mihajlovski <mihajlov@de.ibm.com>
Message-Id: <20211122112909.18138-1-mhartmay@linux.ibm.com>
[thuth: Cosmetic fixes, and use PRIu64 instead of %lu]
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/ipl.c