Re: [RFC 0/5] Protection information pass-through for block devices

2022-12-05 Thread Dmitry Tihov
On Fri, Nov 25, 2022 at 08:44:18, Klaus Jensen wrote: > +CC: block layer maintainers (Kevin, Hanna) > > On Nov 24 18:58, Dmitry Tihov wrote: > > This patch set allows using End-to-End Data Protection in NVMe subsystem > > with integrity capable host devices as the NVMe namesp

[RFC 4/5] hw/nvme: implement pi pass read/write/wrz commands

2022-11-24 Thread Dmitry Tihov
, because apptag is never checked by block devices, check it explicitly in case of set 01 bit in PRCHK. Signed-off-by: Dmitry Tihov --- hw/nvme/ctrl.c | 13 +- hw/nvme/dif.c| 303 +++ hw/nvme/dif.h| 18 +++ hw/nvme/trace-events | 4 + 4

[RFC 2/5] block: add transfer of protection information

2022-11-24 Thread Dmitry Tihov
: Dmitry Tihov --- block/file-posix.c | 130 +-- block/io_uring.c | 109 +++-- include/block/block-common.h | 2 + include/block/raw-aio.h | 3 +- include/qemu/iov.h | 6 ++ util/iov.c

[RFC 5/5] hw/nvme: extend pi pass capable commands

2022-11-24 Thread Dmitry Tihov
Add protection information block level passthrough support to compare, dataset management, verify and copy nvme commands. Signed-off-by: Dmitry Tihov --- hw/nvme/ctrl.c | 348 +++ hw/nvme/trace-events | 2 + 2 files changed, 325 insertions(+), 25

[RFC 3/5] hw/nvme: add protection information pass parameter

2022-11-24 Thread Dmitry Tihov
Allow namespace to enable pass-through of protection information between guest and integrity capable BlockBackend. Signed-off-by: Dmitry Tihov --- hw/nvme/ns.c | 59 +- hw/nvme/nvme.h | 2 ++ 2 files changed, 55 insertions(+), 6 deletions

[RFC 0/5] Protection information pass-through for block devices

2022-11-24 Thread Dmitry Tihov
should be changed, etc. Dmitry Tihov (5): docs/nvme: add new feature summary block: add transfer of protection information hw/nvme: add protection information pass parameter hw/nvme: implement pi pass read/write/wrz commands hw/nvme: extend pi pass capable commands block/file-posix.c

[RFC 1/5] docs/nvme: add new feature summary

2022-11-24 Thread Dmitry Tihov
Describe use of new protection info block-level passthrough nvme feature. Signed-off-by: Dmitry Tihov --- docs/system/devices/nvme.rst | 15 +++ 1 file changed, 15 insertions(+) diff --git a/docs/system/devices/nvme.rst b/docs/system/devices/nvme.rst index 30f841ef62..7375379810