libvhost-user: handle NOFD flag in call/kick/err better
commitd5f99fc578d5f4f2ab731ec692f34ce875d870fe
authorJohannes Berg <johannes.berg@intel.com>
Thu, 23 Jan 2020 08:17:06 +0000 (23 09:17 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Feb 2020 08:46:10 +0000 (27 03:46 -0500)
tree35a78fad11b85d21cbccf37941427e7e99b77ea1
parenta00fdc9c9d3e7f2c3c21d14ba8fd04451ec423a2
libvhost-user: handle NOFD flag in call/kick/err better

The code here is odd, for example will it print out invalid
file descriptor numbers that were never sent in the message.

Clean that up a bit so it's actually possible to implement
a device that uses polling.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Message-Id: <20200123081708.7817-5-johannes@sipsolutions.net>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
contrib/libvhost-user/libvhost-user.c