All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: Jaehoon Kim <jhkim@linux.ibm.com>,
	qemu-devel@nongnu.org, qemu-s390x@nongnu.org
Cc: richard.henderson@linaro.org, iii@linux.ibm.com,
	david@kernel.org, pasic@linux.ibm.com, borntraeger@linux.ibm.com,
	farman@linux.ibm.com, mjrosato@linux.ibm.com,
	Jaehoon Kim <jhkim@linux.ibm.com>
Subject: Re: [PATCH v1] hw/s390x/ccw: Mark virtio-pci disable-legacy property as optional
Date: Fri, 29 May 2026 16:02:09 +0200	[thread overview]
Message-ID: <8733zamhzy.fsf@redhat.com> (raw)
In-Reply-To: <20260520183403.223983-1-jhkim@linux.ibm.com>

On Wed, May 20 2026, Jaehoon Kim <jhkim@linux.ibm.com> wrote:

> The s390-ccw-virtio-11.0 compatibility property for TYPE_VIRTIO_PCI
> "disable-legacy" causes QEMU to abort when instantiating
> vhost-user-fs-pci devices:
>
>   Unexpected error in object_property_find_err() at
>   ../qom/object.c:1284:
>   qemu-system-s390x: -device vhost-user-fs-pci: can't apply
>   global virtio-pci.disable-legacy=off: Property
>   'vhost-user-fs-pci.disable-legacy' not found
>
> The issue occurs because some vhost-user devices like
> vhost-user-fs-pci only implement the non-transitional variant
> and do not define a generic device type. Non-transitional
> devices have disable-legacy hardcoded to "on" and do not
> expose it as a property, while only generic device types have
> the "disable-legacy" property. This affects users running
> older machine versions (11.0 and earlier) even when using the
> latest QEMU version.
>
> Mark the global property as optional so it only applies to
> devices that actually have the property, allowing vhost-user
> devices without a generic variant to be instantiated
> successfully on older machine versions.
>
> Fixes: 26103c13cff0 ("hw/s390x/ccw: Disable legacy virtio-pci by default (v11.1+)")
> Signed-off-by: Jaehoon Kim <jhkim@linux.ibm.com>
> ---
>  hw/s390x/s390-virtio-ccw.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
> index 4d35f9b10b..25a9fa4955 100644
> --- a/hw/s390x/s390-virtio-ccw.c
> +++ b/hw/s390x/s390-virtio-ccw.c
> @@ -946,7 +946,7 @@ static void ccw_machine_11_0_class_options(MachineClass *mc)
>       * keep legacy virtio-pci enabled.
>       */
>      static GlobalProperty compat[] = {
> -        { TYPE_VIRTIO_PCI, "disable-legacy", "off" },
> +        { TYPE_VIRTIO_PCI, "disable-legacy", "off", .optional = true },
>      };
>      ccw_machine_11_1_class_options(mc);
>      compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));

Thanks, queued to s390-next.



      parent reply	other threads:[~2026-05-29 14:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-20 18:33 [PATCH v1] hw/s390x/ccw: Mark virtio-pci disable-legacy property as optional Jaehoon Kim
2026-05-22 18:24 ` Matthew Rosato
2026-05-29 14:02 ` Cornelia Huck [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=8733zamhzy.fsf@redhat.com \
    --to=cohuck@redhat.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=david@kernel.org \
    --cc=farman@linux.ibm.com \
    --cc=iii@linux.ibm.com \
    --cc=jhkim@linux.ibm.com \
    --cc=mjrosato@linux.ibm.com \
    --cc=pasic@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=richard.henderson@linaro.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 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.