All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jared Rossi <jrossi@linux.ibm.com>
To: Christian Borntraeger <borntraeger@linux.ibm.com>,
	Thomas Huth <thuth@redhat.com>,
	qemu-devel@nongnu.org, Boris Fiuczynski <fiuczy@linux.ibm.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-s390x@nongnu.org, "Cédric Le Goater" <clg@redhat.com>,
	"Fam Zheng" <fam@euphon.net>,
	"Eric Farman" <farman@linux.ibm.com>
Subject: Re: [PATCH v2] hw: Add "loadparm" property to scsi disk devices for booting on s390x
Date: Mon, 18 Nov 2024 12:35:18 -0500	[thread overview]
Message-ID: <45177122-dbb5-4ce1-ad9a-b7a3a0f6bfa1@linux.ibm.com> (raw)
In-Reply-To: <152401ec-84c2-43f6-a349-cdf5589b9a12@linux.ibm.com>



On 11/18/24 12:12 PM, Christian Borntraeger wrote:
> Am 18.11.24 um 16:53 schrieb Jared Rossi:
>> Loadparm set with boot index works properly and I confirmed the 
>> getter/setter are working as well.
>
> So this is a Tested-by: then?

Yes.

Tested-by Jared Rossi <jrossi@linux.ibm.com>
Reviewed-by Jared Rossi <jrossi@linux.ibm.com>

>>
>> On 11/18/24 10:29 AM, Jared Rossi wrote:
>>> Looks OK to me.
>>>
>>> Reviewed-by Jared Rossi <jrossi@linux.ibm.com>
>>>
>>> On 11/15/24 9:12 AM, Thomas Huth wrote:
>>>> While adding the new flexible boot order feature on s390x recently,
>>>> we missed to add the "loadparm" property to the scsi-hd and scsi-cd
>>>> devices. This property is required on s390x to pass the information
>>>> to the boot loader about which kernel should be started or whether
>>>> the boot menu should be shown. But even more serious: The missing
>>>> property is now causing trouble with the corresponding libvirt patches
>>>> that assume that the "loadparm" property is either settable for all
>>>> bootable devices (when the "boot order" feature is implemented in
>>>> QEMU), or none (meaning the behaviour of older QEMUs that only allowed
>>>> one "loadparm" at the machine level). To fix this broken situation,
>>>> let's implement the "loadparm" property in for the SCSI devices, too.
>>>>
>>>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>>>> ---
>>>>   v2:
>>>>   - Only add the property when running with the s390x target
>>>>     (checked via the arch_type variable during runtime)
>>>>   - Check bootindex property before setting the loadparm property
>>>>   - Call the sanitize function before setting the property, so we
>>>>     can now immediately reject bad properties for the scsi devices,
>>>>     too (had to move the sanitize function to the common code in
>>>>     qdev-properties-system.c for this)
>>>>
>>>>   include/hw/qdev-properties-system.h |  3 ++
>>>>   hw/core/qdev-properties-system.c    | 26 +++++++++++++++++
>>>>   hw/s390x/ipl.c                      | 19 ++++---------
>>>>   hw/scsi/scsi-disk.c                 | 43 
>>>> +++++++++++++++++++++++++++++
>>>>   4 files changed, 78 insertions(+), 13 deletions(-)
>>>>
>>>> [snip...]
>>



      reply	other threads:[~2024-11-18 17:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15 14:12 [PATCH v2] hw: Add "loadparm" property to scsi disk devices for booting on s390x Thomas Huth
2024-11-18 10:02 ` Thomas Huth
2024-11-18 13:54   ` Eric Farman
2024-11-18 15:29 ` Jared Rossi
2024-11-18 15:53   ` Jared Rossi
2024-11-18 17:12     ` Christian Borntraeger
2024-11-18 17:35       ` Jared Rossi [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=45177122-dbb5-4ce1-ad9a-b7a3a0f6bfa1@linux.ibm.com \
    --to=jrossi@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=clg@redhat.com \
    --cc=fam@euphon.net \
    --cc=farman@linux.ibm.com \
    --cc=fiuczy@linux.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=thuth@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.