vhost: add number of fds to vhost-user messages
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 12 Oct 2018 12:40:35 +0000 (14:40 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 18 Oct 2018 08:24:39 +0000 (10:24 +0200)
commitc00bb88d35fe975ede0ea35bdf4f765a2cece7e8
tree139645ffc63e0fd6757699235ca5f4f32d15a90f
parent7f20d9a96582dec8c8d18a7d3e0edb2d0bbc2499
vhost: add number of fds to vhost-user messages

As soon as some ancillary data (fds) are received, it is copied
without checking its length.

This patch adds the number of fds received to the message,
which is set in read_vhost_message().

This is preliminary work to support sending fds to Qemu.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/socket.c
lib/librte_vhost/vhost_user.c
lib/librte_vhost/vhost_user.h