Skip to content

RFC hw/block/nvme: convert ad-hoc aio tracking to aiocbs

Klaus Jensen qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/block/nvme: convert dsm to aiocbhw/block/nvme.c hw/block/trace-events+125 -644 replies
2/4hw/block/nvme: convert copy to aiocbhw/block/nvme.c+199 -1830 replies
3/4hw/block/nvme: convert flush to aiocbhw/block/nvme.c+74 -690 replies
4/4hw/block/nvme: convert zone reset to aiocbhw/block/nvme.c+139 -940 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC 0/4] hw/block/nvme: convert ad-hoc aio tracking to aiocbs

From: Klaus Jensen <[email protected]>

The nvme device currently uses an ad-hoc approach to tracking AIO completion when a request results in multiple issued AIOs.

This series convert those operations (DSM, Copy, Flush and Zone Reset) to use "proper" QEMU AIOCB processing instead. This requires more code, but the end result of this is that we gain proper cancellation support (something that the device would not do correctly in the existing ad-hoc approach, and something that would have required more code anyway).

This series makes SQ deletions "just work" and allows Abort to be implemented such that it actually does something.

Marking RFC, since I've not really done anything with QEMU AIOs and BHs on this level before, so I'd really like some block-layer eyes on it.

Klaus Jensen (4):
hw/block/nvme: convert dsm to aiocb
hw/block/nvme: convert copy to aiocb
hw/block/nvme: convert flush to aiocb
hw/block/nvme: convert zone reset to aiocb

 hw/block/nvme.c       | 945 ++++++++++++++++++++++++------------------
 hw/block/trace-events |   2 +-
 2 files changed, 537 insertions(+), 410 deletions(-)
Signature · 1 line
2.30.1