diff options
| author | Nikolay Nikolaev | 2014-05-27 14:06:29 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-06-19 15:41:57 +0200 |
| commit | d314f586b3c5f8be243efb02c3944e327d4e11a7 (patch) | |
| tree | 3f1a850a10947f55644c7765cbe3021c7c9ed7af /net/clients.h | |
| parent | vhost-net: vhost-user feature bits support (diff) | |
| download | qemu-d314f586b3c5f8be243efb02c3944e327d4e11a7.tar.gz qemu-d314f586b3c5f8be243efb02c3944e327d4e11a7.tar.xz qemu-d314f586b3c5f8be243efb02c3944e327d4e11a7.zip | |
Add new vhost-user netdev backend
Add a new QEMU netdev backend that is intended to invoke vhost_net with the
vhost-user backend. It uses an Unix socket chardev to establish a
communication with the 'slave' (client and server mode supported).
At runtime the netdev will handle OPEN/CLOSE events from the chardev. Upon
disconnection it will set link_down accordingly and notify virtio-net; the
virtio-net interface will go down.
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>
Diffstat (limited to 'net/clients.h')
| -rw-r--r-- | net/clients.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/clients.h b/net/clients.h index 7322ff5f33..7f3d4ae9f3 100644 --- a/net/clients.h +++ b/net/clients.h @@ -57,4 +57,7 @@ int net_init_netmap(const NetClientOptions *opts, const char *name, NetClientState *peer); #endif +int net_init_vhost_user(const NetClientOptions *opts, const char *name, + NetClientState *peer); + #endif /* QEMU_NET_CLIENTS_H */ |
