numam-dpdk/lib
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
..
librte_acl remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
librte_cfgfile cfgfile: support looking up sections by index 2016-02-29 11:28:31 +01:00
librte_cmdline cmdline: bump library version 2016-03-09 16:13:14 +01:00
librte_compat
librte_cryptodev cryptodev: add capabilities discovery 2016-03-11 10:43:09 +01:00
librte_distributor
librte_eal eal: decrease log level of some debug messages 2016-03-13 23:44:35 +01:00
librte_ether ethdev: add IP in GRE tunnel 2016-03-13 15:27:20 +01:00
librte_hash hash: fix CRC32c computation 2016-03-01 14:37:26 +01:00
librte_ip_frag remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
librte_ivshmem
librte_jobstats jobstats: add abort function 2016-02-29 11:22:53 +01:00
librte_kni lib: remove keyword extern for functions 2016-01-28 18:40:46 +01:00
librte_kvargs remove unneeded tests for NULL when freeing 2016-01-27 15:34:48 +01:00
librte_lpm lpm/arm: support NEON 2016-03-11 15:56:07 +01:00
librte_mbuf ixgbe: offload VxLAN and NVGRE Rx checksum on X550 2016-03-13 11:52:52 +01:00
librte_mempool mempool: fix leak when creation fails 2016-02-19 16:17:45 +01:00
librte_meter
librte_net
librte_pipeline pipeline: add new functions for action handlers 2016-03-10 01:29:42 +01:00
librte_port port: add pcap file dump 2016-03-13 16:04:11 +01:00
librte_power config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
librte_reorder
librte_ring remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
librte_sched sched: eliminate floating point in calculating byte clock 2016-03-13 23:31:59 +01:00
librte_table lpm: add a new config structure for IPv4 2016-03-09 23:05:05 +01:00
librte_timer
librte_vhost vhost: fix default value of kickfd and callfd 2016-03-15 00:20:29 +01:00
Makefile mbuf_offload: remove library 2016-03-10 21:08:28 +01:00