]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw: replace most qemu_bh_new calls with qemu_bh_new_guarded
authorAlexander Bulekov <alxndr@bu.edu>
Thu, 27 Apr 2023 21:10:09 +0000 (17:10 -0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 11 Sep 2023 07:53:50 +0000 (10:53 +0300)
commitae96dce3b79861f62a0d2068d2cd0511740a1a6d
tree3b259cdbaa6584aab9b640b4518343364e65d2f5
parentbb3522b4f88d7a1c11f4dfcab53dd6d3b78d7771
hw: replace most qemu_bh_new calls with qemu_bh_new_guarded

This protects devices from bh->mmio reentrancy issues.

Thanks: Thomas Huth <thuth@redhat.com> for diagnosing OS X test failure.
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230427211013.2994127-5-alxndr@bu.edu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit f63192b0544af5d3e4d5edfd85ab520fcf671377)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
25 files changed:
hw/9pfs/xen-9p-backend.c
hw/block/dataplane/virtio-blk.c
hw/block/dataplane/xen-block.c
hw/char/virtio-serial-bus.c
hw/display/qxl.c
hw/display/virtio-gpu.c
hw/ide/ahci.c
hw/ide/ahci_internal.h
hw/ide/core.c
hw/misc/imx_rngc.c
hw/misc/macio/mac_dbdma.c
hw/net/virtio-net.c
hw/nvme/ctrl.c
hw/scsi/mptsas.c
hw/scsi/scsi-bus.c
hw/scsi/vmw_pvscsi.c
hw/usb/dev-uas.c
hw/usb/hcd-dwc2.c
hw/usb/hcd-ehci.c
hw/usb/hcd-uhci.c
hw/usb/host-libusb.c
hw/usb/redirect.c
hw/usb/xen-usb.c
hw/virtio/virtio-balloon.c
hw/virtio/virtio-crypto.c