Blame SOURCES/kvm-docs-system-s390x-Document-the-loadparm-machine-prop.patch

62547e
From 407e23d7f0c9020404247afe7d4df98505222bbb Mon Sep 17 00:00:00 2001
62547e
From: Thomas Huth <thuth@redhat.com>
62547e
Date: Mon, 14 Nov 2022 14:25:02 +0100
62547e
Subject: [PATCH 1/3] docs/system/s390x: Document the "loadparm" machine
62547e
 property
62547e
MIME-Version: 1.0
62547e
Content-Type: text/plain; charset=UTF-8
62547e
Content-Transfer-Encoding: 8bit
62547e
62547e
RH-Author: Thomas Huth <thuth@redhat.com>
62547e
RH-MergeRequest: 233: s390x: Document the "loadparm" machine property
62547e
RH-Bugzilla: 2128225
62547e
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
62547e
RH-Acked-by: Cédric Le Goater <clg@redhat.com>
62547e
RH-Acked-by: Jon Maloy <jmaloy@redhat.com>
62547e
RH-Commit: [1/2] e9589ea32d2a8f82971476b644e1063fa14cf822
62547e
62547e
The "loadparm" machine property is useful for selecting alternative
62547e
kernels on the disk of the guest, but so far we do not tell the users
62547e
yet how to use it. Add some documentation to fill this gap.
62547e
62547e
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=2128235
62547e
Message-Id: <20221114132502.110213-1-thuth@redhat.com>
62547e
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
62547e
Signed-off-by: Thomas Huth <thuth@redhat.com>
62547e
(cherry picked from commit be5df2edb5d69ff3107c5616aa035a9ba8d0422e)
62547e
---
62547e
 docs/system/s390x/bootdevices.rst | 26 ++++++++++++++++++++++++++
62547e
 1 file changed, 26 insertions(+)
62547e
62547e
diff --git a/docs/system/s390x/bootdevices.rst b/docs/system/s390x/bootdevices.rst
62547e
index 9e591cb9dc..d4bf3b9f0b 100644
62547e
--- a/docs/system/s390x/bootdevices.rst
62547e
+++ b/docs/system/s390x/bootdevices.rst
62547e
@@ -53,6 +53,32 @@ recommended to specify a CD-ROM device via ``-device scsi-cd`` (as mentioned
62547e
 above) instead.
62547e
 
62547e
 
62547e
+Selecting kernels with the ``loadparm`` property
62547e
+------------------------------------------------
62547e
+
62547e
+The ``s390-ccw-virtio`` machine supports the so-called ``loadparm`` parameter
62547e
+which can be used to select the kernel on the disk of the guest that the
62547e
+s390-ccw bios should boot. When starting QEMU, it can be specified like this::
62547e
+
62547e
+ qemu-system-s390x -machine s390-ccw-virtio,loadparm=<string>
62547e
+
62547e
+The first way to use this parameter is to use the word ``PROMPT`` as the
62547e
+``<string>`` here. In that case the s390-ccw bios will show a list of
62547e
+installed kernels on the disk of the guest and ask the user to enter a number
62547e
+to chose which kernel should be booted -- similar to what can be achieved by
62547e
+specifying the ``-boot menu=on`` option when starting QEMU. Note that the menu
62547e
+list will only show the names of the installed kernels when using a DASD-like
62547e
+disk image with 4k byte sectors. On normal SCSI-style disks with 512-byte
62547e
+sectors, there is not enough space for the zipl loader on the disk to store
62547e
+the kernel names, so you only get a list without names here.
62547e
+
62547e
+The second way to use this parameter is to use a number in the range from 0
62547e
+to 31. The numbers that can be used here correspond to the numbers that are
62547e
+shown when using the ``PROMPT`` option, and the s390-ccw bios will then try
62547e
+to automatically boot the kernel that is associated with the given number.
62547e
+Note that ``0`` can be used to boot the default entry.
62547e
+
62547e
+
62547e
 Booting from a network device
62547e
 -----------------------------
62547e
 
62547e
-- 
62547e
2.37.3
62547e