All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
To: no-reply@sashiko.virtuozzo.com, andrey.zhadchenko@virtuozzo.com
Cc: andrey.drobyshev@virtuozzo.com, svt-core@virtuozzo.com
Subject: Re: [PATCH hci-8.2 v2 2/2] vhost-blk: pause the VM on an IO_ERROR uevent from dm-qcow2 #VSTOR-152175
Date: Fri, 20 Nov 2026 13:45:00 +0100	[thread overview]
Message-ID: <c7bfbda6-bea1-49f2-b823-1ab5b0022692@virtuozzo.com> (raw)
In-Reply-To: <010701a1edc972b4-aceaf194-d65e-4f7f-82e0-7590fe881f63-000000@eu-central-1.amazonses.com>

>> +    /* dm-qcow2 repeats the event on every failed retry of a held request */
>> +    if (s->io_error_held || !s->vhost_started ||
>> +        runstate_check(RUN_STATE_SUSPENDED)) {
>> +        return;
>> +    }
> [Severity: Low]
> Can a dropped IO_ERROR uevent leave the guest running with a held request?
>
> If the socket overruns and the only IO_ERROR event for a request is lost, vhost_blk_uevent_read() hits the ENOBUFS branch. That branch only calls qemu_bh_schedule(s->resize_bh), which re-reads the capacity. It cannot detect a held request, so vhost_blk_io_error() is never called. The VM is not stopped, no BLOCK_IO_ERROR is emitted and no migration blocker is added. The request stays held in dm-qcow2 and the guest I/O hangs.
>
> The repeat described in this comment does not seem to cover that case. A retry happens only after libvirt resubmits, and libvirt resubmits only after the VM has stopped. A lost first event therefore removes the trigger for any repeat. I could not check dm-qcow2 from this tree, so the claim in the comment is unverified.
We are leaving this as is. libvirt filters the socket to this one 
device, and dm-qcow2 sends
a single IO_ERROR per held request, so an overrun is practically 
impossible. QEMU also
has no way to query held requests, so the ENOBUFS branch has nothing to 
re-check. The
comment only explains why we ignore the repeated events that follow a 
resubmit; it
never claimed to cover a lost event.

  reply	other threads:[~2026-11-20 12:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18  8:28 [PATCH hci-8.2 v2 0/2] vhost-blk: support the werror/rerror policies Alexander Ivanov
2026-11-18  8:28 ` [PATCH hci-8.2 v2 1/2] vhost-blk: add the werror and rerror properties #VSTOR-152175 Alexander Ivanov
2026-11-18  8:31   ` no-reply
2026-11-18  8:28 ` [PATCH hci-8.2 v2 2/2] vhost-blk: pause the VM on an IO_ERROR uevent from dm-qcow2 #VSTOR-152175 Alexander Ivanov
2026-11-18  8:32   ` no-reply
2026-11-20 12:45     ` Alexander Ivanov [this message]
2026-11-18 16:08   ` Andrey Drobyshev

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=c7bfbda6-bea1-49f2-b823-1ab5b0022692@virtuozzo.com \
    --to=alexander.ivanov@virtuozzo.com \
    --cc=andrey.drobyshev@virtuozzo.com \
    --cc=andrey.zhadchenko@virtuozzo.com \
    --cc=no-reply@sashiko.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.