summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2019-09-13 11:52:11 +0100
committerPeter Maydell <peter.maydell@linaro.org>2019-09-13 11:52:11 +0100
commitcc9c8b82669e22bf2440ccb54a7a0ebee7627a28 (patch)
tree88145613ae5bdd79a98c0c40fe4a3917787629d3
parent7ff91278623f2ca6888c21b6567648c69692f783 (diff)
parentebb6ff25cd888a52a64a9adc3692541c6d1d9a42 (diff)
downloadfocaccia-qemu-cc9c8b82669e22bf2440ccb54a7a0ebee7627a28.tar.gz
focaccia-qemu-cc9c8b82669e22bf2440ccb54a7a0ebee7627a28.zip
Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging
Pull request

# gpg: Signature made Wed 11 Sep 2019 15:36:02 BST
# gpg:                using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8
# gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [full]
# gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>" [full]
# Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8

* remotes/stefanha/tags/block-pull-request:
  virtio-blk: Cancel the pending BH when the dataplane is reset

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/block/dataplane/virtio-blk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c
index 9299a1a7c2..119906a5fe 100644
--- a/hw/block/dataplane/virtio-blk.c
+++ b/hw/block/dataplane/virtio-blk.c
@@ -298,6 +298,9 @@ void virtio_blk_data_plane_stop(VirtIODevice *vdev)
         virtio_bus_cleanup_host_notifier(VIRTIO_BUS(qbus), i);
     }
 
+    qemu_bh_cancel(s->bh);
+    notify_guest_bh(s); /* final chance to notify guest */
+
     /* Clean up guest notifier (irq) */
     k->set_guest_notifiers(qbus->parent, nvqs, false);