Skip to content

Protection information support for xnvme ioengine

Ankit Kumar fio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5engines/xnvme: allocate iovecs only if vectored I/O is enabledengines/xnvme.c+9 -60 replies
2/5engines/xnvme: add support for metadataHOWTO.rst configure engines/xnvme.c +1 more+114 -140 replies
3/5engines:xnvme: add support for end to end data protectionHOWTO.rst engines/xnvme.c fio.1+153 -80 replies
4/5engines/xnvme: add checks for verify, block size and metadata sizeengines/xnvme.c+49 -02 replies
5/5examples: add PI example with xnvme ioengineexamples/xnvme-pi.fio examples/xnvme-pi.png+53 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJens Axboe
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Protection information support for xnvme ioengine

This series enables protection information support with xnvme ioengine. The support is provided with the kernel backends that can handle passthrough commands via nvme character device (/dev/ngXnY), or with user space nvme drivers such as SPDK and libvfn.

The initial patch adds support for metadata buffer. As we are unaware of metadata size during metadata buffer allocation, we provide an option md_per_io_size. This must be used to specify metadata size for single IO, if namespace is formatted with separate metadata buffer.

This then enables the protection information support with and without PRACT bit set for both DIF and DIX cases. The support only covers 16-bit and 64-bit guard protection information format, without storage tags.

For the sake of consistency metadata and protection information specific options are the same as the ones used by io_uring_cmd ioengine and SPDK's external ioengine.

Ankit Kumar (5):
engines/xnvme: allocate iovecs only if vectored I/O is enabled engines/xnvme: add support for metadata
engines:xnvme: add support for end to end data protection engines/xnvme: add checks for verify, block size and metadata size
examples: add PI example with xnvme ioengine

 HOWTO.rst             |  10 +-
 configure             |   2 +-
 engines/xnvme.c       | 331 +++++++++++++++++++++++++++++++++++++++---
 examples/xnvme-pi.fio |  53 +++++++
 examples/xnvme-pi.png | Bin 0 -> 71285 bytes
 fio.1                 |  10 +-
 6 files changed, 378 insertions(+), 28 deletions(-)
 create mode 100644 examples/xnvme-pi.fio
 create mode 100644 examples/xnvme-pi.png
Signature · 1 line
2.25.1