1. 12 Jul, 2021 7 commits
  2. 11 Jul, 2021 4 commits
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging · d1987c81
      Peter Maydell authored
      
      
      * More SVM fixes (Lara)
      * Module annotation database (Gerd)
      * Memory leak fixes (myself)
      * Build fixes (myself)
      * --with-devices-* support (Alex)
      
      # gpg: Signature made Fri 09 Jul 2021 17:23:52 BST
      # gpg:                using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
      # gpg:                issuer "pbonzini@redhat.com"
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full]
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [full]
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini-gitlab/tags/for-upstream: (48 commits)
        meson: Use input/output for entitlements target
        configure: allow the selection of alternate config in the build
        configs: rename default-configs to configs and reorganise
        hw/arm: move CONFIG_V7M out of default-devices
        hw/arm: add dependency on OR_IRQ for XLNX_VERSAL
        meson: Introduce target-specific Kconfig
        meson: switch function tests from compilation to linking
        vl: fix leak of qdict_crumple return value
        target/i386: fix exceptions for MOV to DR
        target/i386: Added DR6 and DR7 consistency checks
        target/i386: Added MSRPM and IOPM size check
        monitor/tcg: move tcg hmp commands to accel/tcg, register them dynamically
        usb: build usb-host as module
        monitor/usb: register 'info usbhost' dynamically
        usb: drop usb_host_dev_is_scsi_storage hook
        monitor: allow register hmp commands
        accel: build tcg modular
        accel: add tcg module annotations
        accel: build qtest modular
        accel: add qtest module annotations
        ...
      Signed-off-by: Peter Maydell's avatarPeter Maydell <peter.maydell@linaro.org>
      d1987c81
    • Peter Maydell's avatar
      Merge remote-tracking branch... · 86108e23
      Peter Maydell authored
      
      Merge remote-tracking branch 'remotes/vivier2/tags/trivial-branch-for-6.1-pull-request' into staging
      
      Trivial patches pull request 20210709
      
      # gpg: Signature made Fri 09 Jul 2021 21:26:52 BST
      # gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
      # gpg:                issuer "laurent@vivier.eu"
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full]
      # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * remotes/vivier2/tags/trivial-branch-for-6.1-pull-request:
        util/guest-random: Fix size arg to tail memcpy
        migration: fix typo in mig_throttle_guest_down comment
        target/xtensa/xtensa-semi: Fix compilation problem on Haiku
        hw/virtio: Document *_should_notify() are called within rcu_read_lock()
        misc: Remove redundant new line in perror()
        virtiofsd: Add missing newline in error message
        misc: Fix "havn't" typo
        memory: Display MemoryRegion name in read/write ops trace events
        qemu-option: Drop dead assertion
      Signed-off-by: Peter Maydell's avatarPeter Maydell <peter.maydell@linaro.org>
      86108e23
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/cminyard/tags/for-qemu-6.1-2' into staging · 9516034d
      Peter Maydell authored
      
      
      Some qemu updates for IPMI and I2C
      
      Move some ADC file to where they belong and move some sensors to a
      sensor directory, since with new BMCs coming in lots of different
      sensors should be coming in.  Keep from cluttering things up.
      
      Add support for I2C PMBus devices.
      
      Replace the confusing and error-prone i2c_send_recv and i2c_transfer with
      specific send and receive functions.  Several errors have already been
      made with these, avoid any new errors.
      
      Fix the watchdog_expired field in the IPMI watchdog, it's not a bool,
      it's a u8.  After a vmstate transfer, the new value could be wrong.
      
      # gpg: Signature made Fri 09 Jul 2021 17:25:04 BST
      # gpg:                using RSA key FD0D5CE67CE0F59A6688268661F38C90919BFF81
      # gpg: Good signature from "Corey Minyard <cminyard@mvista.com>" [unknown]
      # gpg:                 aka "Corey Minyard <minyard@acm.org>" [unknown]
      # gpg:                 aka "Corey Minyard <corey@minyard.net>" [unknown]
      # gpg:                 aka "Corey Minyard <minyard@mvista.com>" [unknown]
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: FD0D 5CE6 7CE0 F59A 6688  2686 61F3 8C90 919B FF81
      
      * remotes/cminyard/tags/for-qemu-6.1-2: (24 commits)
        tests/qtest: add tests for MAX34451 device model
        hw/misc: add MAX34451 device
        tests/qtest: add tests for ADM1272 device model
        hw/misc: add ADM1272 device
        hw/i2c: add support for PMBus
        ipmi/sim: fix watchdog_expired data type error in IPMIBmcSim struct
        hw/i2c: Introduce i2c_start_recv() and i2c_start_send()
        hw/i2c: Extract i2c_do_start_transfer() from i2c_start_transfer()
        hw/i2c: Make i2c_start_transfer() direction argument a boolean
        hw/i2c: Rename i2c_set_slave_address() -> i2c_slave_set_address()
        hw/i2c: Remove confusing i2c_send_recv()
        hw/misc/auxbus: Replace i2c_send_recv() by i2c_recv() & i2c_send()
        hw/misc/auxbus: Replace 'is_write' boolean by its value
        hw/misc/auxbus: Explode READ_I2C / WRITE_I2C_MOT cases
        hw/misc/auxbus: Fix MOT/classic I2C mode
        hw/i2c/ppc4xx_i2c: Replace i2c_send_recv() by i2c_recv() & i2c_send()
        hw/i2c/ppc4xx_i2c: Add reference to datasheet
        hw/display/sm501: Replace i2c_send_recv() by i2c_recv() & i2c_send()
        hw/display/sm501: Simplify sm501_i2c_write() logic
        hw/input/lm832x: Define TYPE_LM8323 in public header
        ...
      Signed-off-by: Peter Maydell's avatarPeter Maydell <peter.maydell@linaro.org>
      9516034d
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20210709' into staging · 3cfcc329
      Peter Maydell authored
      
      
      target-arm queue:
       * New machine type: stm32vldiscovery
       * hw/intc/arm_gicv3_cpuif: Fix virtual irq number check in icv_[dir|eoir]_write
       * hw/gpio/pl061: Honour Luminary PL061 PUR and PDR registers
       * virt: Fix implementation of GPIO-based powerdown/shutdown mechanism
       * Correct the encoding of MDCCSR_EL0 and DBGDSCRint
       * hw/intc: Improve formatting of MEMTX_ERROR guest error message
      
      # gpg: Signature made Fri 09 Jul 2021 17:09:10 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-20210709:
        hw/intc: Improve formatting of MEMTX_ERROR guest error message
        target/arm: Correct the encoding of MDCCSR_EL0 and DBGDSCRint
        hw/arm/stellaris: Expand comment about handling of OLED chipselect
        hw/gpio/pl061: Document a shortcoming in our implementation
        hw/gpio/pl061: Convert to 3-phase reset and assert GPIO lines correctly on reset
        hw/arm/virt: Make PL061 GPIO lines pulled low, not high
        hw/gpio/pl061: Make pullup/pulldown of outputs configurable
        hw/gpio/pl061: Honour Luminary PL061 PUR and PDR registers
        hw/gpio/pl061: Document the interface of this device
        hw/gpio/pl061: Add tracepoints for register read and write
        hw/gpio/pl061: Clean up read/write offset handling logic
        hw/gpio/pl061: Convert DPRINTF to tracepoints
        hw/intc/arm_gicv3_cpuif: Fix virtual irq number check in icv_[dir|eoir]_write
        tests/boot-serial-test: Add STM32VLDISCOVERY board testcase
        docs/system: arm: Add stm32 boards description
        stm32vldiscovery: Add the STM32VLDISCOVERY Machine
        stm32f100: Add the stm32f100 SoC
      Signed-off-by: Peter Maydell's avatarPeter Maydell <peter.maydell@linaro.org>
      3cfcc329
  3. 10 Jul, 2021 10 commits
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · 42e1d798
      Peter Maydell authored
      
      
      Block layer patches
      
      - Make blockdev-reopen stable
      - Remove deprecated qemu-img backing file without format
      - rbd: Convert to coroutines and add write zeroes support
      - rbd: Updated MAINTAINERS
      - export/fuse: Allow other users access to the export
      - vhost-user: Fix backends without multiqueue support
      - Fix drive-backup transaction endless drained section
      
      # gpg: Signature made Fri 09 Jul 2021 13:49:22 BST
      # gpg:                using RSA key DC3DEB159A9AF95D3D7456FE7F09B272C88F2FD6
      # gpg:                issuer "kwolf@redhat.com"
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>" [full]
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * remotes/kevin/tags/for-upstream: (28 commits)
        block: Make blockdev-reopen stable API
        iotests: Test reopening multiple devices at the same time
        block: Support multiple reopening with x-blockdev-reopen
        block: Acquire AioContexts during bdrv_reopen_multiple()
        block: Add bdrv_reopen_queue_free()
        qcow2: Fix dangling pointer after reopen for 'file'
        qemu-img: Improve error for rebase without backing format
        qemu-img: Require -F with -b backing image
        qcow2: Prohibit backing file changes in 'qemu-img amend'
        blockdev: fix drive-backup transaction endless drained section
        vhost-user: Fix backends without multiqueue support
        MAINTAINERS: add block/rbd.c reviewer
        block/rbd: fix type of task->complete
        iotests/fuse-allow-other: Test allow-other
        iotests/308: Test +w on read-only FUSE exports
        export/fuse: Let permissions be adjustable
        export/fuse: Give SET_ATTR_SIZE its own branch
        export/fuse: Add allow-other option
        export/fuse: Pass default_permissions for mount
        util/uri: do not check argument of uri_free()
        ...
      Signed-off-by: Peter Maydell's avatarPeter Maydell <peter.maydell@linaro.org>
      42e1d798
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/dg-gitlab/tags/ppc-for-6.1-20210709' into staging · fc32b91a
      Peter Maydell authored
      
      
      ppc patch queue 2021-07-09
      
      Here's a (probably) final pull request before the qemu-6.1 soft
      freeze.  Includes:
        * Implementation of the new H_RPT_INVALIDATE hypercall
        * Virtual Open Firmware for pSeries and pegasos2 machine types.
          This is an experimental minimal Open Firmware implementation which
          works by delegating nearly everything to qemu itself via a special
          hypercall.
        * A number of cleanups to the ppc soft MMU code
        * Fix to handling of two-level radix mode translations for the
          powernv machine type
        * Update the H_GET_CPU_CHARACTERISTICS call with newly defined bits.
          This will allow more flexible handling of possible future CPU
          Spectre-like flaws
        * Correctly treat mtmsrd as an illegal instruction on BookE cpus
        * Firmware update for the ppce500 machine type
      
      # gpg: Signature made Fri 09 Jul 2021 06:16:42 BST
      # gpg:                using RSA key 75F46586AE61A66CC44E87DC6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>" [full]
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>" [full]
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>" [full]
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>" [unknown]
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dg-gitlab/tags/ppc-for-6.1-20210709: (33 commits)
        target/ppc: Support for H_RPT_INVALIDATE hcall
        linux-headers: Update
        spapr: Fix implementation of Open Firmware client interface
        target/ppc: Don't compile ppc_tlb_invalid_all without TCG
        ppc/pegasos2: Implement some RTAS functions with VOF
        ppc/pegasos2: Fix use of && instead of &
        ppc/pegasos2: Use Virtual Open Firmware as firmware replacement
        target/ppc/spapr: Update H_GET_CPU_CHARACTERISTICS L1D cache flush bits
        target/ppc: Allow virtual hypervisor on CPU without HV
        ppc/pegasos2: Introduce Pegasos2MachineState structure
        target/ppc: mtmsrd is an illegal instruction on BookE
        spapr: Implement Open Firmware client interface
        docs/system: ppc: Update ppce500 documentation with eTSEC support
        roms/u-boot: Bump ppce500 u-boot to v2021.07 to add eTSEC support
        target/ppc: change ppc_hash32_xlate to use mmu_idx
        target/ppc: introduce mmu-books.h
        target/ppc: changed ppc_hash64_xlate to use mmu_idx
        target/ppc: fix address translation bug for radix mmus
        target/ppc: Fix compilation with DEBUG_BATS debug option
        target/ppc: Fix compilation with FLUSH_ALL_TLBS debug option
        ...
      Signed-off-by: Peter Maydell's avatarPeter Maydell <peter.maydell@linaro.org>
      fc32b91a
    • Richard Henderson's avatar
    • Richard Henderson's avatar
      tcg: Remove TCG_TARGET_HAS_goto_ptr · f4e01e30
      Richard Henderson authored
      Since 6eea0434
      
      , all tcg backends support goto_ptr.
      Remove the conditional, making support mandatory.
      Reviewed-by: Philippe Mathieu-Daudé's avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: Richard Henderson's avatarRichard Henderson <richard.henderson@linaro.org>
      f4e01e30
    • Richard Henderson's avatar
    • Richard Henderson's avatar
      accel/tcg: Split out log_cpu_exec · abb0cd93
      Richard Henderson authored
      
      
      Split out CPU_LOG_EXEC and CPU_LOG_TB_CPU logging from
      cpu_tb_exec to a new function.  Perform only one pc
      range check after a combined mask check.
      
      Use the new function in lookup_tb_ptr.  This enables
      CPU_LOG_TB_CPU between indirectly chained tbs.
      Signed-off-by: Richard Henderson's avatarRichard Henderson <richard.henderson@linaro.org>
      abb0cd93
    • Richard Henderson's avatar
      accel/tcg: Move tb_lookup to cpu-exec.c · 632cb63d
      Richard Henderson authored
      
      
      Now that we've moved helper_lookup_tb_ptr, the only user
      of tb-lookup.h is cpu-exec.c; merge the contents in.
      Reviewed-by: Philippe Mathieu-Daudé's avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: Richard Henderson's avatarRichard Henderson <richard.henderson@linaro.org>
      632cb63d
    • Richard Henderson's avatar
      accel/tcg: Move helper_lookup_tb_ptr to cpu-exec.c · 4288eb26
      Richard Henderson authored
      
      
      This will allow additional code sharing.
      No functional change.
      Reviewed-by: Philippe Mathieu-Daudé's avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: Richard Henderson's avatarRichard Henderson <richard.henderson@linaro.org>
      4288eb26
    • Richard Henderson's avatar
      target/i386: Use cpu_breakpoint_test in breakpoint_handler · 50b208b8
      Richard Henderson authored
      
      
      The loop is performing a simple boolean test for the existence
      of a BP_CPU breakpoint at EIP.  Plus it gets the iteration wrong,
      if we happen to have a BP_GDB breakpoint at the same address.
      
      We have a function for this: cpu_breakpoint_test.
      Signed-off-by: Richard Henderson's avatarRichard Henderson <richard.henderson@linaro.org>
      Reviewed-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <20210620062317.1399034-1-richard.henderson@linaro.org>
      50b208b8
    • Richard Henderson's avatar
      tcg: Fix prologue disassembly · d1c74ab3
      Richard Henderson authored
      In tcg_region_prologue_set, we reset TCGContext.code_gen_ptr.
      So do that after we've used it to dump the prologue contents.
      
      Fixes: b0a0794a
      
      Signed-off-by: Richard Henderson's avatarRichard Henderson <richard.henderson@linaro.org>
      d1c74ab3
  4. 09 Jul, 2021 19 commits