OSDN Git Service

Add the vhost-user netdev backend to the command line
authorNikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Tue, 10 Jun 2014 10:02:16 +0000 (13:02 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 15:44:18 +0000 (18:44 +0300)
commit03ce574442d2ee82f59a5232a24492ad80858d75
tree4f270d36ab25767f5d22e38a23deeab49d4556ed
parentd314f586b3c5f8be243efb02c3944e327d4e11a7
Add the vhost-user netdev backend to the command line

The supplied chardev id will be inspected for supported options. Only
a socket backend, with a set path (i.e. a Unix socket) and optionally
the server parameter set, will be allowed. Other options (nowait, telnet)
will make the chardev unusable and the netdev will not be initialised.

Additional checks for validity:
  - requires `-numa node,memdev=..`
  - requires `-device virtio-net-*`

The `vhostforce` option is used to force vhost-net when we deal with
non-MSIX guests.

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>
Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
configure
hmp-commands.hx
hw/net/vhost_net.c
net/hub.c
net/net.c
net/vhost-user.c
qapi-schema.json
qemu-options.hx