diff options
| author | Pankaj Gupta <pagupta@redhat.com> | 2015-06-16 13:48:59 +0530 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2015-06-19 12:17:49 +0200 |
| commit | 1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25 (patch) | |
| tree | a321d5ab687fbe83abba5c2dfd83d97051abfff0 /net | |
| parent | 74de5504fd063019433ec0746105da774ede790d (diff) | |
| download | focaccia-qemu-1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25.tar.gz focaccia-qemu-1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25.zip | |
vhost: enable vhost without without MSI-X
We use vhostforce to enable vhost even if Guests don't have MSI-X support and we fall back to QEMU virtio-net. This gives a very small performance gain, but the disadvantage is that guest now controls which virtio code is running (qemu or vhost) so our attack surface is doubled. This patch will enable vhost unconditionally whenever it's requested. For compatibility, enable vhost when vhostforce is set, as well. Signed-off-by: Pankaj Gupta <pagupta@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net')
| -rw-r--r-- | net/tap.c | 1 | ||||
| -rw-r--r-- | net/vhost-user.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/net/tap.c b/net/tap.c index ec12dfd1d8..3a3f522eac 100644 --- a/net/tap.c +++ b/net/tap.c @@ -671,7 +671,6 @@ static void net_init_tap_one(const NetdevTapOptions *tap, NetClientState *peer, options.backend_type = VHOST_BACKEND_TYPE_KERNEL; options.net_backend = &s->nc; - options.force = tap->has_vhostforce && tap->vhostforce; if (tap->has_vhostfd || tap->has_vhostfds) { vhostfd = monitor_fd_param(cur_mon, vhostfdname, &err); diff --git a/net/vhost-user.c b/net/vhost-user.c index 8d2672846f..f1df26df95 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -50,7 +50,6 @@ static int vhost_user_start(VhostUserState *s) options.backend_type = VHOST_BACKEND_TYPE_USER; options.net_backend = &s->nc; options.opaque = s->chr; - options.force = true; s->vhost_net = vhost_net_init(&options); |