From: no-reply@sashiko.virtuozzo.com
To: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>,
svt-core@virtuozzo.com
Cc: andrey.zhadchenko@virtuozzo.com
Subject: Re: [PATCH hci-8.1/hci-8.2] vhost-blk: add .get_vhost() callback #VSTOR-156756
Date: Mon, 23 Nov 2026 17:16:06 +0000 [thread overview]
Message-ID: <010701a2096867a2-27879172-f791-44e7-943e-e929e8e09be7-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261123170603.98512-1-andrey.drobyshev@virtuozzo.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] vhost-blk: bug-fix commit lacks Fixes: trailer for missing
get_vhost
--
commit 59c1eb3b1add0284811f0ba88f7bc20d4bfc76c7
Author: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
> vhost-blk: add .get_vhost() callback #VSTOR-156756
>
> Currently QMP command x-query-virtio-status on a vhost-blk disk leads to
> SIGSEGV:
>
> #1 0x000055de877be9f1 in qmp_x_query_virtio_status (path=0x55deb3e79030 "/machine/peripheral/virtio-disk1/virtio-backend", errp=0x7f5501a81f80)
> at ../hw/virtio/virtio-qmp.c:814
> #2 0x000055de87a1c8ec in qmp_marshal_x_query_virtio_status (args=0x7f53ec003a20, ret=0x7f550017dfa8, errp=0x7f550017dfb0) at qapi/qapi-commands-virtio.c:126
> #3 0x000055de87a580be in do_qmp_dispatch_bh (opaque=0x7f550017dfb8) at ../qapi/qmp-dispatch.c:128
> ...
> #14 0x000055de87537a75 in qemu_main_loop () at ../system/runstate.c:910
> #15 0x000055de879681a2 in qemu_default_main (opaque=0x0) at ../system/main.c:51
>
> That's because this command leads to calling .get_vhost() method which
> TYPE_VHOST_BLK never realizes. Let's add a simple implementation
> returning that pointer.
>
> QMP commands x-query-virtio-vhost-queue-status, x-query-virtio-queue-status
> are also affected by this bug and fixed by the callback implementation.
>
> Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
[Severity: Low]
This looks like a bug fix for a SIGSEGV that has existed since vhost-blk
was introduced, because the device never set the get_vhost callback.
Should this include:
Fixes: 0ff3cb5ff28f ("block: add vhost-blk backend")
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261123170603.98512-1-andrey.drobyshev@virtuozzo.com?part=1
next prev parent reply other threads:[~2026-11-23 17:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 17:06 Andrey Drobyshev
2026-11-23 17:16 ` no-reply [this message]
2026-11-25 0:21 ` Andrey Zhadchenko
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=010701a2096867a2-27879172-f791-44e7-943e-e929e8e09be7-000000@eu-central-1.amazonses.com \
--to=no-reply@sashiko.virtuozzo.com \
--cc=andrey.drobyshev@virtuozzo.com \
--cc=andrey.zhadchenko@virtuozzo.com \
--cc=svt-core@virtuozzo.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.