qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: jrossi@linux.ibm.com, qemu-devel@nongnu.org, qemu-s390x@nongnu.org
Subject: Re: [PATCH] docs/system/s390x/bootdevices: Update loadparm documentation
Date: Fri, 15 Nov 2024 07:24:47 +0100	[thread overview]
Message-ID: <51aea464-19dc-4129-b8f5-86ed7eb419ba@redhat.com> (raw)
In-Reply-To: <20241115002742.3576842-1-jrossi@linux.ibm.com>

On 15/11/2024 01.27, jrossi@linux.ibm.com wrote:
> From: Jared Rossi <jrossi@linux.ibm.com>
> 
> Update documentation to include per-device loadparm support.
> 
> Signed-off-by: Jared Rossi <jrossi@linux.ibm.com>
> ---
>   docs/system/s390x/bootdevices.rst | 24 +++++++++++++++++++++++-
>   1 file changed, 23 insertions(+), 1 deletion(-)
> 
> diff --git a/docs/system/s390x/bootdevices.rst b/docs/system/s390x/bootdevices.rst
> index 1a1a764c1c..ecb22de04a 100644
> --- a/docs/system/s390x/bootdevices.rst
> +++ b/docs/system/s390x/bootdevices.rst
> @@ -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``.

Reviewed-by: Thomas Huth <thuth@redhat.com>



      reply	other threads:[~2024-11-15  6:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15  0:27 [PATCH] docs/system/s390x/bootdevices: Update loadparm documentation jrossi
2024-11-15  6:24 ` Thomas Huth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51aea464-19dc-4129-b8f5-86ed7eb419ba@redhat.com \
    --to=thuth@redhat.com \
    --cc=jrossi@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).