numam-dpdk/lib/librte_vhost
Yuanhan Liu b8b992e93f vhost: fix long stall of negotiation
Setting up the mapping from GPA (guest physical address) to HPA (guest
physical address) could be very time consuming when the guest memory is
backened with small pages (4K). The bigger the guest memory, the longer
it takes. This could lead a very long vhost-user negotiation.

Since the mapping is only needed in zero copy mode so far, we could
avoid such time consuming settup when zero copy is turned off (which is
the default case).

It's actually a workaround, a right fix might be to start a new thread,
and hide the big latency there.

Fixes: e246896178 ("vhost: get guest/host physical address mappings")
Cc: stable@dpdk.org

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2017-01-28 14:25:40 +01:00
..
fd_man.c vhost: allow many vhost-user ports 2017-01-17 09:20:18 +01:00
fd_man.h vhost: allow many vhost-user ports 2017-01-17 09:20:18 +01:00
Makefile vhost: refactor code structure 2016-09-13 05:25:08 +02:00
rte_vhost_version.map vhost: export queue free entries 2016-06-22 09:02:58 +02:00
rte_virtio_net.h vhost: remove references to vhost-cuse 2016-11-07 15:59:21 +01:00
socket.c vhost: fix use after free 2016-10-26 13:39:09 +02:00
vhost_user.c vhost: fix long stall of negotiation 2017-01-28 14:25:40 +01:00
vhost_user.h vhost: introduce reply ack feature 2017-01-17 09:20:18 +01:00
vhost.c vhost: fix memory leak 2017-01-17 09:20:17 +01:00
vhost.h vhost: remove references to vhost-cuse 2016-11-07 15:59:21 +01:00
virtio_net.c vhost: fix dead loop in enqueue path 2017-01-28 14:25:23 +01:00