Skip to content

block: Fix regression introduced with prep_writev2 support

~abombo qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1block: Don't regress when prep_writev2 isn't presentblock/io_uring.c block/linux-aio.c+0 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH qemu 0/1] block: Fix regression introduced with prep_writev2 support

Hi folks,

This is my first contribution to QEMU so please bear with me. :-)

I'm raising this because Kata Containers recently upgraded from QEMU 9 to 10 and it turns out this broke virtio-blk for the project [1].

The issue is that when QEMU introduced support for prep_writev2, it also started enforcing flags be unset when using prep_write. However, this breaks on systems where prep_writev2 isn't present and the prep_write branch is taken (e.g. Ubuntu 22.04 with liburing 2.1 in Kata), as the flags aren't necessarily empty there, and the assertion is violated.

We patched Kata by upgrading liburing [2] but I thought others might benefit from patching QEMU.

[1] https://github.com/kata-containers/kata-containers/issues/11686
[2] https://github.com/kata-containers/kata-containers/pull/11918

Aurélien Bombo (1):
block: Don't regress when prep_writev2 isn't present

 block/io_uring.c  | 1 -
 block/linux-aio.c | 1 -
 2 files changed, 2 deletions(-)
Signature · 1 line
2.49.1