Skip to contentSkip to conversation

docs/system/s390x/bootdevices: Update loadparm documentation

PATCH In review [email protected] 2 participants 2 messages Nov 15, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/system/s390x/bootdevices: Update loadparm documentation

From: Jared Rossi <[email protected]>

Update documentation to include per-device loadparm support.

---
 docs/system/s390x/bootdevices.rst | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)
docs/system/s390x/bootdevices.rst +23 -1
index 1a1a764c1c..ecb22de04a 100644
@@ -79,7 +79,29 @@ The second way to use this parameter is to use a number in the range from 0
 to 31. The numbers that can be used here correspond to the numbers that are
 shown when using the ``PROMPT`` option, and the s390-ccw bios will then try
 to automatically boot the kernel that is associated with the given number.
-Note that ``0`` can be used to boot the default entry.
+Note that ``0`` can be used to boot the default entry. If the machine
+``loadparm`` is not assigned a value, then the default entry is used.
+
+By default, the machine ``loadparm`` applies to all boot devices. If multiple
+devices are assigned a ``bootindex`` and the ``loadparm`` is to be different
+between them, an independent ``loadparm`` may be assigned on a per-device basis.
+
+An example guest using per-device ``loadparm``::
+
+  qemu-system-s390x -drive if=none,id=dr1,file=primary.qcow2 \
+                   -device virtio-blk,drive=dr1,bootindex=1 \
+                   -drive if=none,id=dr2,file=secondary.qcow2 \
+                   -device virtio-blk,drive=dr2,bootindex=2,loadparm=3
+
+In this case, the primary boot device will attempt to IPL using the default
+entry (because no ``loadparm`` is specified for this device or for the
+machine). If that device fails to boot, the secondary device will attempt to
+IPL using entry number 3.
+
+If a ``loadparm`` is specified on both the machine and a device, the per-device
+value will superseded the machine value.  Per-device ``loadparm`` values are
+only used for devices with an assigned ``bootindex``. The machine ``loadparm``
+is used when attempting to boot without a ``bootindex``.
 
 
 Booting from a network device
Signature · 1 line
2.45.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 31 lines · On 15/11/2024 01.27, [email protected] wrote:

From: Jared Rossi <[email protected]>

Update documentation to include per-device loadparm support.

---
  docs/system/s390x/bootdevices.rst | 24 +++++++++++++++++++++++-
  1 file changed, 23 insertions(+), 1 deletion(-)
docs/system/s390x/bootdevices.rst +13 -1
index 1a1a764c1c..ecb22de04a 100644
@@ -79,7 +79,29 @@ The second way to use this parameter is to use a number in the range from 0
  to 31. The numbers that can be used here correspond to the numbers that are
  shown when using the ``PROMPT`` option, and the s390-ccw bios will then try
  to automatically boot the kernel that is associated with the given number.
-Note that ``0`` can be used to boot the default entry.
+Note that ``0`` can be used to boot the default entry. If the machine
+``loadparm`` is not assigned a value, then the default entry is used.
+
+By default, the machine ``loadparm`` applies to all boot devices. If multiple
+devices are assigned a ``bootindex`` and the ``loadparm`` is to be different
+between them, an independent ``loadparm`` may be assigned on a per-device basis.
+
+An example guest using per-device ``loadparm``::
+
+  qemu-system-s390x -drive if=none,id=dr1,file=primary.qcow2 \
+                   -device virtio-blk,drive=dr1,bootindex=1 \
+                   -drive if=none,id=dr2,file=secondary.qcow2 \
+                   -device virtio-blk,drive=dr2,bootindex=2,loadparm=3

docs/system/s390x/bootdevices.rst The second way to use this parameter is to use a number in the range from 0 · line 104

Quoted 10 lines
docs/system/s390x/bootdevices.rst +10 -0
+
+In this case, the primary boot device will attempt to IPL using the default
+entry (because no ``loadparm`` is specified for this device or for the
+machine). If that device fails to boot, the secondary device will attempt to
+IPL using entry number 3.
+
+If a ``loadparm`` is specified on both the machine and a device, the per-device
+value will superseded the machine value.  Per-device ``loadparm`` values are
+only used for devices with an assigned ``bootindex``. The machine ``loadparm``
+is used when attempting to boot without a ``bootindex``.