diff options
| author | Marc-André Lureau | 2016-07-26 23:15:16 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-07-28 23:33:48 +0200 |
| commit | 8695de0fcf739b2071018d933b407ed8c16f40e8 (patch) | |
| tree | ec90319204db8c627af41389e6b6a3381f468f74 /include | |
| parent | vhost-net: vhost_migration_done is vhost-user specific (diff) | |
| download | qemu-8695de0fcf739b2071018d933b407ed8c16f40e8.tar.gz qemu-8695de0fcf739b2071018d933b407ed8c16f40e8.tar.xz qemu-8695de0fcf739b2071018d933b407ed8c16f40e8.zip | |
vhost: add assert() to check runtime behaviour
All these functions must be called only after the backend is connected.
They are called from virtio-net.c, after either virtio or link status
change.
The check for nc->peer->link_down should ensure vhost_net_{start,stop}()
are always called between vhost_user_{start,stop}().
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
