virtio-net: stop vhost backend on vmstop
commit3f505ec990599aeb960ed7031a2bb7b233ea4927
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 2 Jun 2010 18:01:52 +0000 (2 21:01 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 4 Jun 2010 17:03:02 +0000 (4 14:03 -0300)
tree7a6319b56411a60303f55205afc6f3b1a6f8538a
parent0796aacb687817aede995439126400291111fb02
virtio-net: stop vhost backend on vmstop

vhost net currently keeps running after vmstop,
which causes trouble as qemy does not check
for dirty pages anymore.
The fix is to simply keep vm and vhost running/stopped
status in sync.

Tested-by: David L Stevens <dlstevens@us.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
hw/virtio-net.c