All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] migration: switch remaining positioned I/O to _all helpers
@ 2026-04-20 20:13 Junjie Cao
  2026-04-20 20:13 ` [PATCH 1/3] migration/qemu-file: switch buffer_at functions to positioned I/O " Junjie Cao
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Junjie Cao @ 2026-04-20 20:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: peterx, farosas, junjie.cao

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(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-04-27 14:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-04-27 22:36     ` Junjie Cao

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.