qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Jared Rossi <jrossi@linux.ibm.com>, qemu-devel@nongnu.org
Cc: qemu-s390x@nongnu.org,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>,
	"Cédric Le Goater" <clg@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Boris Fiuczynski" <fiuczy@linux.ibm.com>
Subject: Re: [PATCH] hw/s390x: Restrict "loadparm" property to devices that can be used for booting
Date: Thu, 14 Nov 2024 13:39:23 +0100	[thread overview]
Message-ID: <a3d5ecee-3959-4136-a29c-1f7ec36831e3@redhat.com> (raw)
In-Reply-To: <bc1e420a-65c1-4e11-901e-24e55dc2265f@linux.ibm.com>

On 13/11/2024 15.49, Jared Rossi wrote:
...
> Hi Thomas,
> 
> Thanks for putting this fix together.  As we previously discussed, I do agree
> that my naive implementation of the “loadparm” property at the top-level
> CcwDevice was not satisfactory, and certainly virtio-gpu and virtio-tablet
> should not have a “loadparm.”
> 
> The reason I had not yet submitted a fix is that I’ve gotten some feedback from
> the Libvirt side that suggests the CcwDevice implementation is not sufficient
> in general.  Libvirt will require that non-ccw devices (e.g. scsi-hd) also
> support per-device loadparm.  I do not yet know how to add that type of support
> and given that we are in hard freeze I’m not sure it is possible now.
> 
> Obviously this is not ideal, and I truly do apologize for the confusion.

  Hi Jared,

yes, that scsi-hd problem is a little bit tricky, since it's common code 
that we should not "pollute" too much with s390x specific stuff, especially 
since we're in hard freeze now.

After staring at the code for quite a while, I think one option might be to 
just add a string "loadparm" property to the SCSI devices, that's just a 
simple two-line change to the common code. Patch suggestion can be found here:

  https://lore.kernel.org/qemu-devel/20241114122919.973930-1-thuth@redhat.com/

The only disadvantage is that this is now checking for valid characters in 
the string after the property has already been set, so it cannot prevent the 
setting of bad characters. But it still prints out an error message later, 
so I hope that is also still acceptable.

Let me know what you think about it!

  Thanks,
   Thomas



  reply	other threads:[~2024-11-14 12:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-13 11:47 [PATCH] hw/s390x: Restrict "loadparm" property to devices that can be used for booting Thomas Huth
2024-11-13 11:53 ` Philippe Mathieu-Daudé
2024-11-13 14:49 ` Jared Rossi
2024-11-14 12:39   ` Thomas Huth [this message]
2024-11-14 16:45     ` Jared Rossi
2024-11-13 20:50 ` Jared Rossi

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=a3d5ecee-3959-4136-a29c-1f7ec36831e3@redhat.com \
    --to=thuth@redhat.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=clg@redhat.com \
    --cc=fiuczy@linux.ibm.com \
    --cc=jrossi@linux.ibm.com \
    --cc=pbonzini@redhat.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).