virtio-net: drop assert on vm stop
commit131c5221fe25a9547c4a388a3d26ff7fd14843e5
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Sep 2014 15:32:51 +0000 (11 18:32 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 18 Sep 2014 18:51:24 +0000 (18 21:51 +0300)
treef44dd641da0e178613754cbf6103dbd91a1d4855
parentabb4d5f2e2830b7a6dc4ddcc612dfab15e3a320d
virtio-net: drop assert on vm stop

On vm stop, vm_running state set to stopped
before device is notified, so callbacks can get envoked with
vm_running = false; and this is not an error.

Cc: qemu-stable@nongnu.org
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c