numam-dpdk/lib/librte_vhost/vhost_user
Tetsuya Mukawa fb871d0a4d vhost: fix default value of kickfd and callfd
Currently, default values of kickfd and callfd are -1.
If the values are -1, current code guesses kickfd and callfd haven't
been initialized yet. Then vhost library will guess the virtqueue isn't
ready for processing.

But callfd and kickfd will be set as -1 when "--enable-kvm"
isn't specified in QEMU command line. It means we cannot treat -1 as
uninitialized state.

The patch defines -1 and -2 as VIRTIO_INVALID_EVENTFD and
VIRTIO_UNINITIALIZED_EVENTFD, and uses VIRTIO_UNINITIALIZED_EVENTFD for
the default values of kickfd and callfd.

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-03-15 00:20:29 +01:00
..
fd_man.c vhost: fix missed unlock 2015-12-13 02:13:39 +01:00
fd_man.h vhost: support dynamically registering server 2015-02-24 01:38:17 +01:00
vhost-net-user.c vhost: broadcast RARP by injecting in receiving mbuf array 2016-02-29 16:55:30 +01:00
vhost-net-user.h vhost: handle request to send RARP 2016-02-19 15:49:02 +01:00
virtio-net-user.c vhost: fix default value of kickfd and callfd 2016-03-15 00:20:29 +01:00
virtio-net-user.h vhost: broadcast RARP by injecting in receiving mbuf array 2016-02-29 16:55:30 +01:00