From: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
To: Stefan Hajnoczi <stefanha@redhat.com>, qemu-devel@nongnu.org
Cc: Fam Zheng <fam@euphon.net>, Paolo Bonzini <pbonzini@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH] virtio-scsi: set dataplane_started to false upon failure
Date: Wed, 26 Aug 2026 10:33:17 +0200 [thread overview]
Message-ID: <82678d11-421a-456c-b112-51eaee6fcc48@oss.qualcomm.com> (raw)
In-Reply-To: <20260825154854.263819-1-stefanha@redhat.com>
On 25/8/26 17:48, Stefan Hajnoczi wrote:
> Commit e24a47c5b73e ("virtio-scsi: do not use vring in dataplane") set
> dataplane_started to true when virtio_scsi_dataplane_start() fails. This
> is likely a typo since dataplane is not functional after failure.
>
> The non-ioeventfd fallback is broken because dataplane_started is true
> after virtio_scsi_dataplane_start() failure. As a result, the following
> assertion failure occurs when a virtio-scsi device exceeds the open file
> descriptor ulimit when setting up notifiers (eventfds):
>
> $ ulimit -n 104 # exact number can vary based on QEMU version
> $ qemu-system-x86_64 -M q35,accel=kvm -m 1G -cpu host -smp 14 \
> --blockdev file,node-name=drive0,filename=test.img,cache.direct=on,aio=native \
> --blockdev file,node-name=drive1,filename=data01.img,cache.direct=on,aio=native \
> --device virtio-scsi-pci,id=virtio-scsi-pci0 \
> --device scsi-hd,drive=drive0,bus=virtio-scsi-pci0.0 \
> --device virtio-scsi-pci,id=virtio-scsi-pci1 \
> --device scsi-hd,drive=drive1,bus=virtio-scsi-pci1.0
> qemu: virtio-scsi: Failed to set guest notifiers (-24), ensure -accel kvm is set.
> qemu: virtio_bus_start_ioeventfd: failed. Fallback to userspace (slower).
> qemu-system-x86_64: ../hw/scsi/virtio-scsi.c:1017: virtio_scsi_reset: Assertion `!s->dataplane_started' failed.
> Aborted (core dumped)
>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Fixes: e24a47c5b73e ("virtio-scsi: do not use vring in dataplane")
> Buglink: https://redhat.atlassian.net/browse/RHEL-193328
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> hw/scsi/virtio-scsi-dataplane.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
next prev parent reply other threads:[~2026-08-26 8:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 15:48 [PATCH] virtio-scsi: set dataplane_started to false upon failure Stefan Hajnoczi
2026-08-26 8:33 ` Philippe Mathieu-Daudé [this message]
2026-09-08 19:37 ` Stefan Hajnoczi
2026-09-12 9:13 ` Michael Tokarev
2026-09-12 15:09 ` Stefan Hajnoczi
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=82678d11-421a-456c-b112-51eaee6fcc48@oss.qualcomm.com \
--to=philmd@oss.qualcomm.com \
--cc=fam@euphon.net \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@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.