]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/vhost.c
vhost_net_init will use VhostNetOptions to get all its arguments
authorNikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Tue, 27 May 2014 12:05:22 +0000 (15:05 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 13:41:56 +0000 (16:41 +0300)
commit81647a655fa4ff99fd5748363a174edd87a40950
treee13e0fafe22ef7bcd48f9fdf2fbcc04b75ca9966
parented8b4afe5ff290ae119237e4fa2142e9f1832230
vhost_net_init will use VhostNetOptions to get all its arguments

vhost_dev_init will replace devfd and devpath with a single opaque argument.
This is initialised with a file descriptor. When TAP is used (through
vhost_net), open /dev/vhost-net and pass the fd as an opaque parameter in
VhostNetOptions. The same applies to vhost-scsi - open /dev/vhost-scsi and
pass the fd.

Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/vhost_net.c
hw/scsi/vhost-scsi.c
hw/virtio/vhost.c
include/hw/virtio/vhost.h
include/net/vhost_net.h
net/tap.c