From: Peter Xu <peterx@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>, Junjie Cao <junjie.cao@intel.com>
Cc: Junjie Cao <junjie.cao@intel.com>,
qemu-devel@nongnu.org, farosas@suse.de,
qemu-stable <qemu-stable@nongnu.org>
Subject: Re: [PATCH 0/3] migration: switch remaining positioned I/O to _all helpers
Date: Mon, 27 Apr 2026 09:16:14 -0400 [thread overview]
Message-ID: <ae9hnhsSivO_RfVf@x1.local> (raw)
In-Reply-To: <0954cec2-4c0d-4a97-96e6-b821c37e8a99@tls.msk.ru>
On Sun, Apr 26, 2026 at 11:27:08AM +0300, Michael Tokarev wrote:
> On 20.04.2026 23:13, Junjie Cao wrote:
> > Follow-up to the pread/pwrite_all API series [1].
> >
> > qemu_put_buffer_at(), qemu_get_buffer_at(), and file_write_ramblock_iov()
> > all use single-shot positioned I/O without retry. They share the same
> > pattern as the bug fixed in multifd_file_recv_data() where a short
> > transfer would be mishandled.
> >
> > Convert them to the _all helpers and clean up a pre-existing
> > const-correctness issue in qemu_get_buffer_at() along the way.
> >
> > After this series no positioned I/O call site in migration/ uses raw
> > single-shot channel operations.
> >
> > Depends-on: <20260413214549.926435-1-junjie.cao@intel.com>
> > ("io/channel: complete pread/pwrite_all API and fix
> > multifd_file_recv_data")
> >
> > [1] https://lore.kernel.org/qemu-devel/20260413214549.926435-1-junjie.cao@intel.com/
> >
> > Junjie Cao (3):
> > migration/qemu-file: switch buffer_at functions to positioned I/O _all
> > helpers
> > migration/file: switch file_write_ramblock_iov to pwritev_all
> > migration/qemu-file: drop incorrect const from qemu_get_buffer_at buf
> >
> > migration/file.c | 8 ++++----
> > migration/qemu-file.c | 37 ++++---------------------------------
> > migration/qemu-file.h | 2 +-
> > 3 files changed, 9 insertions(+), 38 deletions(-)
>
> And just like the previous changes in this area, - should I pick these 3
> to the current qemu-stable series, or is it not needed?
>
> Applies to 10.0.x series and passes tests, but I haven't done any more
> testing here.
My understanding is we don't yet have a real report / reproducer for the
partial-io issue fixed here. Considering the size of the patchsets
(especially the dependency series), maybe we can skip these two sets of
patches until we know a solid report from anyone.
Junjie, did you find & fix this problem due to a real bug, or it was
theoretical while you were reading the code?
Thanks,
--
Peter Xu
next prev parent reply other threads:[~2026-04-27 13:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-20 20:13 [PATCH 0/3] migration: switch remaining positioned I/O to _all helpers Junjie Cao
2026-04-20 20:13 ` [PATCH 1/3] migration/qemu-file: switch buffer_at functions to positioned I/O " Junjie Cao
2026-04-20 20:13 ` [PATCH 2/3] migration/file: switch file_write_ramblock_iov to pwritev_all Junjie Cao
2026-04-20 20:13 ` [PATCH 3/3] migration/qemu-file: drop incorrect const from qemu_get_buffer_at buf Junjie Cao
2026-04-20 17:34 ` Philippe Mathieu-Daudé
2026-04-21 14:20 ` [PATCH 0/3] migration: switch remaining positioned I/O to _all helpers Peter Xu
2026-04-26 8:27 ` Michael Tokarev
2026-04-27 13:16 ` Peter Xu [this message]
2026-04-27 22:36 ` Junjie Cao
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=ae9hnhsSivO_RfVf@x1.local \
--to=peterx@redhat.com \
--cc=farosas@suse.de \
--cc=junjie.cao@intel.com \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@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 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.