summary refs log tree commit diff stats
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorLuke Gorrie <luke@snabb.co>2015-04-26 15:00:49 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-04-27 20:49:45 +0200
commit294ce717e0f212ed0763307f3eab72b4a1bdf4d0 (patch)
tree6219dfb61787de117b5b4765836e9031f9455fe7 /hw/net/virtio-net.c
parent658c27181bf3b08a9cf2fab00ecce7f76065f6af (diff)
downloadfocaccia-qemu-294ce717e0f212ed0763307f3eab72b4a1bdf4d0.tar.gz
focaccia-qemu-294ce717e0f212ed0763307f3eab72b4a1bdf4d0.zip
vhost-user: Send VHOST_RESET_OWNER on vhost stop
Ensure that the vhost-user slave knows when the vrings are valid and
when they are invalid, for example during a guest reboot.

The vhost-user protocol says this of VHOST_RESET_OWNER:

      Issued when a new connection is about to be closed. The Master
      will no longer own this connection (and will usually close it).

Send this message to tell the vhost-user slave that the vhost session
has ended and that session state (e.g. vrings) is no longer valid.

Signed-off-by: Luke Gorrie <luke@snabb.co>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>


Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions