vhost: improve socket layer logs
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 26 Jan 2022 09:55:06 +0000 (10:55 +0100)
committerChenbo Xia <chenbo.xia@intel.com>
Thu, 27 Jan 2022 08:45:36 +0000 (09:45 +0100)
commitc85c35b1d447c9e5f1acaabd89c36b416cc3ad37
tree209fdac123de86102080ffc9887a97aaa6d104d2
parentb53c9d20fa06483ad7b82ecb9ce3a3a5e0ed1027
vhost: improve socket layer logs

This patch adds the Vhost socket path whenever possible in
order to make debugging possible when multiple Vhost
devices are in use. Some vhost-user layer functions are
modified to pass the device path down to the socket layer.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/vhost/socket.c
lib/vhost/vhost_user.c
lib/vhost/vhost_user.h