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.coque...@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

Reply via email to