[PATCH v2] vhost: add runtime locking check in unsafe APIs
Maxime Coquelin
maxime.coquelin at redhat.com
Tue May 17 15:23:13 CEST 2022
On 5/11/22 08:58, Maxime Coquelin wrote:
> This patch adds runtime checks in unsafe Vhost async APIs,
> to ensure the access lock is taken.
>
> The detection won't work every time, as another thread
> could take the lock, but it would help to detect misuse
> of these unsafe API.
>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
> lib/vhost/vhost.c | 18 ++++++++++++++++++
> lib/vhost/virtio_net.c | 6 ++++++
> 2 files changed, 24 insertions(+)
>
Applied to dpdk-next-virtio/main.
Thanks,
Maxime
More information about the dev
mailing list