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

Linlin Zhang
2026-02-10T08:32:15Z

From: "linlin.zhang@oss.qualcomm.com" <linlin.zhang@oss.qualcomm.com>

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