numam-dpdk/lib/librte_vhost
Tonghao Zhang d64c43773a vhost: add pipe event for optimizing negotiation
When vhost-user connects qemu successfully, dpdk will call
the vhost_user_add_connection to add unix socket fd to poll.
And fdset_add only set the socket fd to a fdentry while poll
may sleep now. In a general case, this is no problem. But if
we use hot update for vhost-user, most downtime of VMs network
is 750+ms. This patch adds pipe event, so after connections are
ok, dpdk rebuild the poll immediately. With this patch, the
most downtime is 20~30ms.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-03-30 17:25:45 +02:00
..
fd_man.c vhost: add pipe event for optimizing negotiation 2018-03-30 17:25:45 +02:00
fd_man.h vhost: add pipe event for optimizing negotiation 2018-03-30 17:25:45 +02:00
iotlb.c vhost: remove pending IOTLB entry if miss request failed 2018-02-05 19:56:04 +01:00
iotlb.h vhost: remove pending IOTLB entry if miss request failed 2018-02-05 19:56:04 +01:00
Makefile mk: add experimental tag check 2018-01-29 23:35:29 +01:00
meson.build build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
rte_vhost_version.map vhost: introduce vring call API 2018-01-16 18:47:49 +01:00
rte_vhost.h vhost: introduce vring call API 2018-01-16 18:47:49 +01:00
socket.c vhost: add pipe event for optimizing negotiation 2018-03-30 17:25:45 +02:00
vhost_user.c vhost: support sending fds via slave channel 2018-03-30 14:08:44 +02:00
vhost_user.h vhost: avoid enum fields in VhostUserMsg 2018-03-30 14:08:42 +02:00
vhost.c vhost: avoid function call in data path 2018-03-30 14:08:42 +02:00
vhost.h vhost: move stdbool include 2018-03-30 14:08:44 +02:00
virtio_net.c vhost: fix log macro name conflict 2018-03-30 14:08:42 +02:00