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 /hw/scsi/vhost-scsi.c | |
parent | 74de5504fd063019433ec0746105da774ede790d (diff) | |
download | qemu-1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25.zip qemu-1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25.tar.gz qemu-1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25.tar.bz2 |
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 'hw/scsi/vhost-scsi.c')
-rw-r--r-- | hw/scsi/vhost-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/vhost-scsi.c b/hw/scsi/vhost-scsi.c index 1941aa1..1c389c4 100644 --- a/hw/scsi/vhost-scsi.c +++ b/hw/scsi/vhost-scsi.c @@ -246,7 +246,7 @@ static void vhost_scsi_realize(DeviceState *dev, Error **errp) s->dev.backend_features = 0; ret = vhost_dev_init(&s->dev, (void *)(uintptr_t)vhostfd, - VHOST_BACKEND_TYPE_KERNEL, true); + VHOST_BACKEND_TYPE_KERNEL); if (ret < 0) { error_setg(errp, "vhost-scsi: vhost initialization failed: %s", strerror(-ret)); |