summaryrefslogtreecommitdiffstats
path: root/hw/vhost_net.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-08-21 20:52:08 +0000
committerMichael S. Tsirkin <mst@redhat.com>2012-09-07 09:15:19 +0300
commit1241ed94c331ddd8fc8297b02b4508ead59467de (patch)
tree745c7cd744ae2b8f92832c50ea2e4e02ed33d02d /hw/vhost_net.c
parenta96ed02fc73e23748c8b3e38880eeac91f83ab9f (diff)
downloadhqemu-1241ed94c331ddd8fc8297b02b4508ead59467de.zip
hqemu-1241ed94c331ddd8fc8297b02b4508ead59467de.tar.gz
vhost: Pass device path to vhost_dev_init()
The path to /dev/vhost-net is currently hardcoded in vhost_dev_init(). This needs to be changed so that /dev/vhost-scsi can be used. Pass in the device path instead of hardcoding it. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/vhost_net.c')
-rw-r--r--hw/vhost_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vhost_net.c b/hw/vhost_net.c
index ecaa22d..df2c4a3 100644
--- a/hw/vhost_net.c
+++ b/hw/vhost_net.c
@@ -109,7 +109,7 @@ struct vhost_net *vhost_net_init(NetClientState *backend, int devfd,
(1 << VHOST_NET_F_VIRTIO_NET_HDR);
net->backend = r;
- r = vhost_dev_init(&net->dev, devfd, force);
+ r = vhost_dev_init(&net->dev, devfd, "/dev/vhost-net", force);
if (r < 0) {
goto fail;
}
OpenPOWER on IntegriCloud