Re: [PATCH] cryptodev/vhost: allocate CryptoDevBackendVhost using g_mem0()

2025-02-12 Thread zhenwei pi
Acked-by: zhenwei pi On 2/11/25 21:55, Stefano Garzarella wrote: The function `vhost_dev_init()` expects the `struct vhost_dev` (passed as a parameter) to be fully initialized. This is important because some parts of the code check whether `vhost_dev->config_ops` is NULL to determine if it has

[PATCH] cryptodev/vhost: allocate CryptoDevBackendVhost using g_mem0()

2025-02-11 Thread Stefano Garzarella
The function `vhost_dev_init()` expects the `struct vhost_dev` (passed as a parameter) to be fully initialized. This is important because some parts of the code check whether `vhost_dev->config_ops` is NULL to determine if it has been set (e.g. later via `vhost_dev_set_config_notifier`). To ensure