linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2 v4] dm-crypt support for per-sector NVMe metadata
@ 2024-05-27 15:39 Mikulas Patocka
  2024-05-27 15:40 ` [PATCH 1/2 v4] block: change rq_integrity_vec to respect the iterator Mikulas Patocka
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mikulas Patocka @ 2024-05-27 15:39 UTC (permalink / raw)
  To: Axboe, Keith Busch, Christoph Hellwig, Sagi Grimberg,
	Mike Snitzer, Milan Broz, Anuj gupta
  Cc: linux-block, dm-devel, linux-nvme

Hi

Here I'm resending the dm-crypt support for per-sector NVMe metadata. I
made some changes to the first patch as suggested by Christoph Hellwig.

The first patch fixes a bug when splitting a bio with attached metadata.
The second patch enables dm-crypt to use NVMe metadata for authenticated
encryption. dm-crypt can run directly on NVMe without using dm-integrity.

These patches increase write throughput twice, because there is no write
to the dm-integrity journal.

An example how to use it (so far, there is no support in the userspace
cryptsetup tool):

# nvme format /dev/nvme1 -n 1 -lbaf=4
# dmsetup create cr --table '0 1048576 crypt
capi:authenc(hmac(sha256),cbc(aes))-essiv:sha256
01b11af6b55f76424fd53fb66667c301466b2eeaf0f39fd36d26e7fc4f52ade2de4228e996f5ae2fe817ce178e77079d28e4baaebffbcd3e16ae4f36ef217298
0 /dev/nvme1n1 0 2 integrity:32:aead sector_size:4096'

Mikulas


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-26 15:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-27 15:39 [PATCH 0/2 v4] dm-crypt support for per-sector NVMe metadata Mikulas Patocka
2024-05-27 15:40 ` [PATCH 1/2 v4] block: change rq_integrity_vec to respect the iterator Mikulas Patocka
2024-05-28  3:47   ` Anuj gupta
2024-05-28  5:25   ` Kanchan Joshi
2024-05-28  6:34   ` Christoph Hellwig
2024-05-27 15:40 ` [PATCH 2/2 v4] dm-crypt: support for per-sector NVMe metadata Mikulas Patocka
2024-06-26 15:14 ` (subset) [PATCH 0/2 v4] dm-crypt " Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).