@samitouri / QOSamiQemu / commits / aaf25b4ccc

docs: deprecate virtio-crypto

We have outstanding guest exploitable bugs in the code which is fairly complex and needs some serious love to clean it up. As off-CPU cryptography acceleration seems to be waning in popularity lets just the deprecate the sub-system with a view to removing it in a couple of cycles. We can also remove the backend code at that point as well. Link: https://gitlab.com/qemu-project/qemu/-/work_items/3625 Reviewed-by: Mohamed Mediouni <mohamed@unpredictable.fr> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20260824-fixes-for-11-2-v2-7-352c6b890402@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

Alex Bennée committed Aug 24, 2026 at 16:24 UTC aaf25b4ccc45dd96d8ffe4e7e41bf3956c345507
1 file changed +18
docs/about/deprecated.rst
+18
@@ -276,6 +276,24 @@ future release. Where no 'dh-params.pem' file is provided, the DH
276 parameters will be automatically negotiated in accordance with
277 RFC7919.
278
279 +Devices
280 +-------
281 +
282 +``virtio-crypto`` and cryptodev backends (since 11.2)
283 +'''''''''''''''''''''''''''''''''''''''''''''''''''''
284 +
285 +The ``virtio-crypto`` device emulation is quite complex code with a
286 +number of known flaws. It has never been migratable, so it is
287 +unlikely to be used in any serious virtualization setting. Modern
288 +ISAs provide on-CPU cryptography instructions (e.g. AES-NI/VAES,
289 +armv8 crypto extensions), and the Linux kernel deprecated AF_ALG
290 +and dropped its off-CPU accelerator support in Linux 7.2, removing
291 +the primary userspace path for off-CPU crypto acceleration. The
292 +time for this sort of off-load has passed.
293 +
294 +As this is the only device that uses the cryptodev backends these will
295 +be removed at the same time the ``virtio-crypto`` device is.
296 +
297 Device options
298 --------------
299