diff options
author | Jason Wang <jasowang@redhat.com> | 2016-07-06 09:57:55 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-07-07 14:29:04 +0800 |
commit | 69e87b32680a41d9761191443587c595b6f5fc3f (patch) | |
tree | 683f9339d73eb1f1480672c2586e46deddbeab7e /net/vhost-user.c | |
parent | 91d35509903464c7f4b9ed56be223d7370d3597c (diff) | |
download | qemu-69e87b32680a41d9761191443587c595b6f5fc3f.zip qemu-69e87b32680a41d9761191443587c595b6f5fc3f.tar.gz qemu-69e87b32680a41d9761191443587c595b6f5fc3f.tar.bz2 |
tap: vhost busy polling support
This patch add the capability of basic vhost net busy polling which is
supported by recent kernel. User could configure the maximum number of
us that could be spent on busy polling through a new property of tap
"poll-us".
Cc: Greg Kurz <groug@kaod.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/vhost-user.c')
-rw-r--r-- | net/vhost-user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/vhost-user.c b/net/vhost-user.c index 92f4cfd..a88dfe0 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -91,6 +91,7 @@ static int vhost_user_start(int queues, NetClientState *ncs[]) options.net_backend = ncs[i]; options.opaque = s->chr; + options.busyloop_timeout = 0; s->vhost_net = vhost_net_init(&options); if (!s->vhost_net) { error_report("failed to init vhost_net for queue %d", i); |