DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vhost: make cryptodev support optional
@ 2026-10-14 16:31 David Marchand
  2026-10-14 16:36 ` Bruce Richardson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Marchand @ 2026-10-14 16:31 UTC (permalink / raw)
  To: dev; +Cc: gmuthukrishn, gakhil, Maxime Coquelin, Chenbo Xia

The vhost crypto part has seen CVEs in the past and is getting a lot of
eyes those days.

Contrary to the vhost async datapath code, the cryptodev code seems to
have active contributors, so dropping this code does not seem a good
thing.

This change here allows to keep this support, yet disable it for
uninterested parties.

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 lib/vhost/meson.build | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/lib/vhost/meson.build b/lib/vhost/meson.build
index 6a24981d10..93366a9609 100644
--- a/lib/vhost/meson.build
+++ b/lib/vhost/meson.build
@@ -30,7 +30,6 @@ sources = files(
         'vdpa.c',
         'vduse.c',
         'vhost.c',
-        'vhost_crypto.c',
         'vhost_user.c',
         'virtio_net.c',
         'virtio_net_ctrl.c',
@@ -39,9 +38,14 @@ headers = files(
         'rte_vdpa.h',
         'rte_vhost.h',
         'rte_vhost_async.h',
-        'rte_vhost_crypto.h',
 )
 driver_sdk_headers = files(
         'vdpa_driver.h',
 )
-deps += ['ethdev', 'cryptodev', 'hash', 'pci', 'dmadev']
+deps += ['ethdev', 'pci', 'dmadev']
+
+if dpdk_conf.has('RTE_LIB_CRYPTODEV')
+    sources += files('vhost_crypto.c')
+    headers += files('rte_vhost_crypto.h')
+    deps += ['cryptodev', 'hash']
+endif
-- 
2.54.0


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

end of thread, other threads:[~2026-10-20 11:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-14 16:31 [PATCH] vhost: make cryptodev support optional David Marchand
2026-10-14 16:36 ` Bruce Richardson
2026-10-14 16:47 ` [EXTERNAL] " Akhil Goyal
2026-10-20 11:22 ` Maxime Coquelin
2026-10-20 11:50 ` Maxime Coquelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox