[PULL 00/13] DMA reentrancy fixes and other misc patches

Thomas Huth posted 13 patches 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230428094346.1292054-1-thuth@redhat.com
Maintainers: Laurent Vivier <laurent@vivier.eu>, Thomas Huth <thuth@redhat.com>, Halil Pasic <pasic@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Stefano Stabellini <sstabellini@kernel.org>, Anthony Perard <anthony.perard@citrix.com>, Paul Durrant <paul@xen.org>, Stefan Hajnoczi <stefanha@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Amit Shah <amit@kernel.org>, "Michael S. Tsirkin" <mst@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>, John Snow <jsnow@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Jason Wang <jasowang@redhat.com>, Keith Busch <kbusch@kernel.org>, Klaus Jensen <its@irrelevant.dk>, "Hervé Poussineau" <hpoussin@reactos.org>, Yuval Shaia <yuval.shaia.ml@gmail.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Fam Zheng <fam@euphon.net>, Dmitry Fleytman <dmitry.fleytman@gmail.com>, David Hildenbrand <david@redhat.com>, "Gonglei (Arei)" <arei.gonglei@huawei.com>, Peter Xu <peterx@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, Richard Henderson <richard.henderson@linaro.org>, Ilya Leoshkevich <iii@linux.ibm.com>
docs/devel/multiple-iothreads.txt    |  7 ++++
configs/targets/s390x-linux-user.mak |  2 +-
configs/targets/s390x-softmmu.mak    |  2 +-
hw/ide/ahci_internal.h               |  1 +
include/block/aio.h                  | 18 ++++++++--
include/exec/memory.h                |  5 +++
include/hw/qdev-core.h               |  7 ++++
include/qemu/main-loop.h             |  7 ++--
hw/9pfs/xen-9p-backend.c             |  5 ++-
hw/block/dataplane/virtio-blk.c      |  3 +-
hw/block/dataplane/xen-block.c       |  5 +--
hw/char/virtio-serial-bus.c          |  3 +-
hw/display/qxl.c                     |  9 +++--
hw/display/virtio-gpu.c              |  6 ++--
hw/ide/ahci.c                        |  3 +-
hw/ide/core.c                        |  4 ++-
hw/intc/apic.c                       |  7 ++++
hw/misc/bcm2835_property.c           |  7 ++++
hw/misc/imx_rngc.c                   |  6 ++--
hw/misc/macio/mac_dbdma.c            |  2 +-
hw/net/virtio-net.c                  |  3 +-
hw/nvme/ctrl.c                       |  6 ++--
hw/pci-host/raven.c                  |  7 ++++
hw/rdma/rdma_rm.c                    |  4 ---
hw/scsi/lsi53c895a.c                 |  6 ++++
hw/scsi/mptsas.c                     |  3 +-
hw/scsi/scsi-bus.c                   |  3 +-
hw/scsi/vmw_pvscsi.c                 |  3 +-
hw/usb/dev-uas.c                     |  3 +-
hw/usb/hcd-dwc2.c                    |  3 +-
hw/usb/hcd-ehci.c                    |  3 +-
hw/usb/hcd-uhci.c                    |  2 +-
hw/usb/host-libusb.c                 |  6 ++--
hw/usb/redirect.c                    |  6 ++--
hw/usb/xen-usb.c                     |  3 +-
hw/virtio/virtio-balloon.c           |  5 +--
hw/virtio/virtio-crypto.c            |  3 +-
softmmu/memory.c                     | 16 +++++++++
target/s390x/gdbstub.c               | 65 +++++++++++++++++++++++++-----------
tests/qtest/vhost-user-test.c        |  3 +-
tests/unit/ptimer-test-stubs.c       |  3 +-
util/async.c                         | 18 +++++++++-
util/main-loop.c                     |  6 ++--
gdb-xml/s390-virt-kvm.xml            | 14 ++++++++
gdb-xml/s390-virt.xml                |  4 ---
hw/rdma/Kconfig                      |  2 +-
hw/rdma/meson.build                  |  8 +++--
scripts/checkpatch.pl                |  8 +++++
util/trace-events                    |  1 +
49 files changed, 250 insertions(+), 76 deletions(-)
create mode 100644 gdb-xml/s390-virt-kvm.xml
[PULL 00/13] DMA reentrancy fixes and other misc patches
Posted by Thomas Huth 1 year ago
 Hi Richard!

The following changes since commit cc5ee50fff9dbac0aac32cd892a7163c7babcca1:

  Merge tag 'pull-testing-docs-270423-1' of https://gitlab.com/stsquad/qemu into staging (2023-04-27 16:46:17 +0100)

are available in the Git repository at:

  https://gitlab.com/thuth/qemu.git tags/pull-request-2023-04-28

for you to fetch changes up to 50795ee051a342c681a9b45671c552fbd6274db8:

  apic: disable reentrancy detection for apic-msi (2023-04-28 11:31:54 +0200)

----------------------------------------------------------------
* Prevent reentrant DMA accesses by default
* Only compile hw/rdma code when necessary
* Fix a potential locking issue in the vhost-user-test
* Offer more registers in GDB for s390x TCG

----------------------------------------------------------------
Alexander Bulekov (8):
      memory: prevent dma-reentracy issues
      async: Add an optional reentrancy guard to the BH API
      checkpatch: add qemu_bh_new/aio_bh_new checks
      hw: replace most qemu_bh_new calls with qemu_bh_new_guarded
      lsi53c895a: disable reentrancy detection for script RAM
      bcm2835_property: disable reentrancy detection for iomem
      raven: disable reentrancy detection for iomem
      apic: disable reentrancy detection for apic-msi

Ilya Leoshkevich (1):
      s390x/gdb: Split s390-virt.xml

Paolo Bonzini (1):
      tests: vhost-user-test: release mutex on protocol violation

Thomas Huth (3):
      hw/rdma: Remove unused macros PG_DIR_SZ and PG_TBL_SZ
      hw/rdma: Compile target-independent parts of the rdma code only once
      hw/rdma: VMW_PVRDMA should depend on VMXNET3_PCI

 docs/devel/multiple-iothreads.txt    |  7 ++++
 configs/targets/s390x-linux-user.mak |  2 +-
 configs/targets/s390x-softmmu.mak    |  2 +-
 hw/ide/ahci_internal.h               |  1 +
 include/block/aio.h                  | 18 ++++++++--
 include/exec/memory.h                |  5 +++
 include/hw/qdev-core.h               |  7 ++++
 include/qemu/main-loop.h             |  7 ++--
 hw/9pfs/xen-9p-backend.c             |  5 ++-
 hw/block/dataplane/virtio-blk.c      |  3 +-
 hw/block/dataplane/xen-block.c       |  5 +--
 hw/char/virtio-serial-bus.c          |  3 +-
 hw/display/qxl.c                     |  9 +++--
 hw/display/virtio-gpu.c              |  6 ++--
 hw/ide/ahci.c                        |  3 +-
 hw/ide/core.c                        |  4 ++-
 hw/intc/apic.c                       |  7 ++++
 hw/misc/bcm2835_property.c           |  7 ++++
 hw/misc/imx_rngc.c                   |  6 ++--
 hw/misc/macio/mac_dbdma.c            |  2 +-
 hw/net/virtio-net.c                  |  3 +-
 hw/nvme/ctrl.c                       |  6 ++--
 hw/pci-host/raven.c                  |  7 ++++
 hw/rdma/rdma_rm.c                    |  4 ---
 hw/scsi/lsi53c895a.c                 |  6 ++++
 hw/scsi/mptsas.c                     |  3 +-
 hw/scsi/scsi-bus.c                   |  3 +-
 hw/scsi/vmw_pvscsi.c                 |  3 +-
 hw/usb/dev-uas.c                     |  3 +-
 hw/usb/hcd-dwc2.c                    |  3 +-
 hw/usb/hcd-ehci.c                    |  3 +-
 hw/usb/hcd-uhci.c                    |  2 +-
 hw/usb/host-libusb.c                 |  6 ++--
 hw/usb/redirect.c                    |  6 ++--
 hw/usb/xen-usb.c                     |  3 +-
 hw/virtio/virtio-balloon.c           |  5 +--
 hw/virtio/virtio-crypto.c            |  3 +-
 softmmu/memory.c                     | 16 +++++++++
 target/s390x/gdbstub.c               | 65 +++++++++++++++++++++++++-----------
 tests/qtest/vhost-user-test.c        |  3 +-
 tests/unit/ptimer-test-stubs.c       |  3 +-
 util/async.c                         | 18 +++++++++-
 util/main-loop.c                     |  6 ++--
 gdb-xml/s390-virt-kvm.xml            | 14 ++++++++
 gdb-xml/s390-virt.xml                |  4 ---
 hw/rdma/Kconfig                      |  2 +-
 hw/rdma/meson.build                  |  8 +++--
 scripts/checkpatch.pl                |  8 +++++
 util/trace-events                    |  1 +
 49 files changed, 250 insertions(+), 76 deletions(-)
 create mode 100644 gdb-xml/s390-virt-kvm.xml
Re: [PULL 00/13] DMA reentrancy fixes and other misc patches
Posted by Richard Henderson 1 year ago
On 4/28/23 10:43, Thomas Huth wrote:
>   Hi Richard!
> 
> The following changes since commit cc5ee50fff9dbac0aac32cd892a7163c7babcca1:
> 
>    Merge tag 'pull-testing-docs-270423-1' ofhttps://gitlab.com/stsquad/qemu  into staging (2023-04-27 16:46:17 +0100)
> 
> are available in the Git repository at:
> 
>    https://gitlab.com/thuth/qemu.git  tags/pull-request-2023-04-28
> 
> for you to fetch changes up to 50795ee051a342c681a9b45671c552fbd6274db8:
> 
>    apic: disable reentrancy detection for apic-msi (2023-04-28 11:31:54 +0200)
> 
> ----------------------------------------------------------------
> * Prevent reentrant DMA accesses by default
> * Only compile hw/rdma code when necessary
> * Fix a potential locking issue in the vhost-user-test
> * Offer more registers in GDB for s390x TCG

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/8.1 as appropriate.


r~