qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrey Zhadchenko via <qemu-devel@nongnu.org>
To: qemu-block@nongnu.org, kwolf@redhat.com
Cc: hreitz@redhat.com, qemu-devel@nongnu.org, den@virtuozzo.com
Subject: [PATCH 0/2] block: do not try to list nearly-dropped filters
Date: Thu, 14 Sep 2023 13:09:49 +0200	[thread overview]
Message-ID: <20230914110951.845856-1-andrey.zhadchenko@virtuozzo.com> (raw)

QEMU crashes on QMP command 'query-named-block-nodes' if we have
finalized but not dismissed block job with filter, for example
block-stream.
This happens because the filter no longer has references from which
QEMU can query block info. Skip such filters while listing block nodes.

This patchset also adds simple test for this case.

Andrey Zhadchenko (2):
  block: do not try to list nearly-dropped filters
  iotests: add new test case for image streaming

 block.c                    |  7 +++++--
 block/qapi.c               |  5 +++++
 tests/qemu-iotests/030     | 17 +++++++++++++++++
 tests/qemu-iotests/030.out |  4 ++--
 4 files changed, 29 insertions(+), 4 deletions(-)

-- 
2.40.1



             reply	other threads:[~2023-09-14 11:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-14 11:09 Andrey Zhadchenko via [this message]
2023-09-14 11:09 ` [PATCH 1/2] block: do not try to list nearly-dropped filters Andrey Zhadchenko via
2023-09-14 11:09 ` [PATCH 2/2] iotests: add new test case for image streaming Andrey Zhadchenko via

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=20230914110951.845856-1-andrey.zhadchenko@virtuozzo.com \
    --to=qemu-devel@nongnu.org \
    --cc=andrey.zhadchenko@virtuozzo.com \
    --cc=den@virtuozzo.com \
    --cc=hreitz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-block@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).