summaryrefslogtreecommitdiffstats
path: root/hw/net
diff options
context:
space:
mode:
authorJason Wang2016-07-06 03:57:55 +0200
committerJason Wang2016-07-07 08:29:04 +0200
commit69e87b32680a41d9761191443587c595b6f5fc3f (patch)
tree683f9339d73eb1f1480672c2586e46deddbeab7e /hw/net
parentMerge remote-tracking branch 'remotes/rth/tags/pull-tcg-20160706' into staging (diff)
downloadqemu-69e87b32680a41d9761191443587c595b6f5fc3f.tar.gz
qemu-69e87b32680a41d9761191443587c595b6f5fc3f.tar.xz
qemu-69e87b32680a41d9761191443587c595b6f5fc3f.zip
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 'hw/net')
-rw-r--r--hw/net/vhost_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c
index 50f4dcd655..11fabc0b0a 100644
--- a/hw/net/vhost_net.c
+++ b/hw/net/vhost_net.c
@@ -172,7 +172,7 @@ struct vhost_net *vhost_net_init(VhostNetOptions *options)
}
r = vhost_dev_init(&net->dev, options->opaque,
- options->backend_type);
+ options->backend_type, options->busyloop_timeout);
if (r < 0) {
goto fail;
}