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

~abombo posted 1 patch 3 days, 9 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/176126238504.17752.8775213803155377166-0@git.sr.ht
Maintainers: Aarushi Mehta <mehta.aaru20@gmail.com>, Julia Suvorova <jusual@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Stefano Garzarella <sgarzare@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>
block/io_uring.c  | 1 -
block/linux-aio.c | 1 -
2 files changed, 2 deletions(-)
[PATCH qemu 0/1] block: Fix regression introduced with prep_writev2 support
Posted by ~abombo 3 days, 9 hours ago
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(-)

-- 
2.49.1