Skip to content
Snippets Groups Projects
  1. Jul 06, 2021
  2. Jul 05, 2021
    • Stefan Hajnoczi's avatar
      util/async: print leaked BH name when AioContext finalizes · 023ca420
      Stefan Hajnoczi authored
      
      BHs must be deleted before the AioContext is finalized. If not, it's a
      bug and probably indicates that some part of the program still expects
      the BH to run in the future. That can lead to memory leaks, inconsistent
      state, or just hangs.
      
      Unfortunately the assert(flags & BH_DELETED) call in aio_ctx_finalize()
      is difficult to debug because the assertion failure contains no
      information about the BH!
      
      Use the QEMUBH name field added in the previous patch to show a useful
      error when a leaked BH is detected.
      
      Suggested-by: default avatarEric Ernst <eric.g.ernst@gmail.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Message-Id: <20210414200247.917496-3-stefanha@redhat.com>
      023ca420
    • Stefan Hajnoczi's avatar
      util/async: add a human-readable name to BHs for debugging · 0f08586c
      Stefan Hajnoczi authored
      
      It can be difficult to debug issues with BHs in production environments.
      Although BHs can usually be identified by looking up their ->cb()
      function pointer, this requires debug information for the program. It is
      also not possible to print human-readable diagnostics about BHs because
      they have no identifier.
      
      This patch adds a name to each BH. The name is not unique per instance
      but differentiates between cb() functions, which is usually enough. It's
      done by changing aio_bh_new() and friends to macros that stringify cb.
      
      The next patch will use the name field when reporting leaked BHs.
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-Id: <20210414200247.917496-2-stefanha@redhat.com>
      0f08586c
  3. Jul 04, 2021
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/philmd/tags/mips-20210702' into staging · 711c0418
      Peter Maydell authored
      
      MIPS patches queue
      
      - Extract nanoMIPS, microMIPS, Code Compaction from translate.c
      - Allow PCI config accesses smaller than 32-bit on Bonito64 device
      - Fix migration of g364fb device on Jazz Magnum
      - Fix dp8393x PROM checksum on Jazz Magnum and Quadra 800
      - Map the UART devices unconditionally on Jazz Magnum
      - Add functional test booting Linux on the Fuloong 2E
      
      # gpg: Signature made Fri 02 Jul 2021 16:36:19 BST
      # gpg:                using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE
      # gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>" [full]
      # Primary key fingerprint: FAAB E75E 1291 7221 DCFD  6BB2 E3E3 2C2C DEAD C0DE
      
      * remotes/philmd/tags/mips-20210702:
        hw/mips/jazz: Map the UART devices unconditionally
        hw/mips/jazz: specify correct endian for dp8393x device
        hw/m68k/q800: fix PROM checksum and MAC address storage
        qemu/bitops.h: add bitrev8 implementation
        dp8393x: remove onboard PROM containing MAC address and checksum
        hw/m68k/q800: move PROM and checksum calculation from dp8393x device to board
        hw/mips/jazz: move PROM and checksum calculation from dp8393x device to board
        dp8393x: convert to trace-events
        dp8393x: checkpatch fixes
        g364fb: add VMStateDescription for G364SysBusState
        g364fb: use RAM memory region for framebuffer
        tests/acceptance: Test Linux on the Fuloong 2E machine
        hw/pci-host/bonito: Allow PCI config accesses smaller than 32-bit
        hw/pci-host/bonito: Trace PCI config accesses smaller than 32-bit
        target/mips: Extract nanoMIPS ISA translation routines
        target/mips: Extract the microMIPS ISA translation routines
        target/mips: Extract Code Compaction ASE translation routines
        target/mips: Add declarations for generic TCG helpers
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      711c0418
  4. Jul 03, 2021
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20210702' into staging · 73c8bf4c
      Peter Maydell authored
      
      target-arm queue:
       * more MVE instructions
       * hw/gpio/gpio_pwr: use shutdown function for reboot
       * target/arm: Check NaN mode before silencing NaN
       * tests: Boot and halt a Linux guest on the Raspberry Pi 2 machine
       * hw/arm: Add basic power management to raspi.
       * docs/system/arm: Add quanta-gbs-bmc, quanta-q7l1-bmc
      
      # gpg: Signature made Fri 02 Jul 2021 13:59:19 BST
      # gpg:                using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
      # gpg:                issuer "peter.maydell@linaro.org"
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [ultimate]
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>" [ultimate]
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" [ultimate]
      # Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE
      
      * remotes/pmaydell/tags/pull-target-arm-20210702: (24 commits)
        target/arm: Implement MVE shifts by register
        target/arm: Implement MVE shifts by immediate
        target/arm: Implement MVE long shifts by register
        target/arm: Implement MVE long shifts by immediate
        target/arm: Implement MVE VADDLV
        target/arm: Implement MVE VSHLC
        target/arm: Implement MVE saturating narrowing shifts
        target/arm: Implement MVE VSHRN, VRSHRN
        target/arm: Implement MVE VSRI, VSLI
        target/arm: Implement MVE VSHLL
        target/arm: Implement MVE vector shift right by immediate insns
        target/arm: Implement MVE vector shift left by immediate insns
        target/arm: Implement MVE logical immediate insns
        target/arm: Use dup_const() instead of bitfield_replicate()
        target/arm: Use asimd_imm_const for A64 decode
        target/arm: Make asimd_imm_const() public
        target/arm: Fix bugs in MVE VRMLALDAVH, VRMLSLDAVH
        target/arm: Fix MVE widening/narrowing VLDR/VSTR offset calculation
        hw/gpio/gpio_pwr: use shutdown function for reboot
        target/arm: Check NaN mode before silencing NaN
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      73c8bf4c
  5. Jul 02, 2021
Loading