[PATCH v2 0/1] Virtio block adds inline encryption support

Linlin Zhang <[email protected]> Tue, 10 Feb 2026 00:32:07 -0800
Newsgroups dev.linux.lists.virtio-dev
Message-ID <[email protected]>
From: "[email protected]" <[email protected]>

Current virtio block protocol discards inline encryption metadata
during I/O transaction, such that hardware inline encryption cannot
be used by the guest virtual machine. 

This patch is used to add inline encryption support on virtio block
through a new feature bit VIRTIO_BLK_F_ICE negotiation and some
struct extension.

About the inline encryption on UFS or eMMC storage, please
refer to the Linux inline encryption documentation:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/block/inline-encryption.rst

---
changes from v2:
 - Add inline encryption link in commit message for a better
   backgrond descryption
 - Add sufficient descryption for the fields of crypto
   capability
 - Delete crypto capability in configuration layout, instead
   add a new request command to get it
 - Correct the terminology in non-normative and normative
   sections
 - Correct the mail for open source upstream

 v1 patch: https://lore.kernel.org/virtio-dev/20260204172749.GA610283@fedora/T/#t

-- 
2.34.1