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

* Re: [PATCH] vhost: make cryptodev support optional
  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
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Bruce Richardson @ 2026-10-14 16:36 UTC (permalink / raw)
  To: David Marchand; +Cc: dev, gmuthukrishn, gakhil, Maxime Coquelin, Chenbo Xia

On Wed, Oct 14, 2026 at 06:31:38PM +0200, David Marchand wrote:
> 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>
> ---
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

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

* RE: [EXTERNAL] [PATCH] vhost: make cryptodev support optional
  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 ` Akhil Goyal
  2026-10-20 11:22 ` Maxime Coquelin
  2026-10-20 11:50 ` Maxime Coquelin
  3 siblings, 0 replies; 5+ messages in thread
From: Akhil Goyal @ 2026-10-14 16:47 UTC (permalink / raw)
  To: David Marchand, dev@dpdk.org
  Cc: Gowrishankar Muthukrishnan, 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>
Acked-by: Akhil Goyal <gakhil@marvell.com>

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

* Re: [PATCH] vhost: make cryptodev support optional
  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
  3 siblings, 0 replies; 5+ messages in thread
From: Maxime Coquelin @ 2026-10-20 11:22 UTC (permalink / raw)
  To: David Marchand, dev; +Cc: gmuthukrishn, gakhil, Chenbo Xia


On 10/14/26 6:31 PM, David Marchand wrote:
> 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

Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Thanks,

Maxime


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

* Re: [PATCH] vhost: make cryptodev support optional
  2026-10-14 16:31 [PATCH] vhost: make cryptodev support optional David Marchand
                   ` (2 preceding siblings ...)
  2026-10-20 11:22 ` Maxime Coquelin
@ 2026-10-20 11:50 ` Maxime Coquelin
  3 siblings, 0 replies; 5+ messages in thread
From: Maxime Coquelin @ 2026-10-20 11:50 UTC (permalink / raw)
  To: David Marchand, dev; +Cc: gmuthukrishn, gakhil, Chenbo Xia


On 10/14/26 6:31 PM, David Marchand wrote:
> 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(-)

Applied to next-virtio/for-next-net.

Thanks,

Maxime


^ permalink raw reply	[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