virtio: don't call device on !vm_running
commit269bd822e7f5ab80048b05fb7076236ed66ffbce
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Sep 2014 10:32:54 +0000 (4 13:32 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 4 Sep 2014 16:19:09 +0000 (4 17:19 +0100)
treea1bd76de81f18612bae3dacf9890ea61f3d571a4
parente8bcf842001739765b8dcc1996d86a0ffd2054d5
virtio: don't call device on !vm_running

On vm stop, virtio changes vm_running state
too soon, so callbacks can get envoked with
vm_running = false;

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