Skip to content
Snippets Groups Projects
  1. Sep 27, 2021
    • Markus Armbruster's avatar
      qapi: Convert simple union SocketAddressLegacy to flat one · 935a867c
      Markus Armbruster authored
      
      Simple unions predate flat unions.  Having both complicates the QAPI
      schema language and the QAPI generator.  We haven't been using simple
      unions in new code for a long time, because they are less flexible and
      somewhat awkward on the wire.
      
      To prepare for their removal, convert simple union SocketAddressLegacy
      to an equivalent flat one, with existing enum SocketAddressType
      replacing implicit enum type SocketAddressLegacyKind.  Adds some
      boilerplate to the schema, which is a bit ugly, but a lot easier to
      maintain than the simple union feature.
      
      Cc: "Daniel P. Berrangé" <berrange@redhat.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20210917143134.412106-9-armbru@redhat.com>
      935a867c
    • Markus Armbruster's avatar
      qapi: Convert simple union ChardevBackend to flat one · 3218c0e9
      Markus Armbruster authored
      
      Simple unions predate flat unions.  Having both complicates the QAPI
      schema language and the QAPI generator.  We haven't been using simple
      unions in new code for a long time, because they are less flexible and
      somewhat awkward on the wire.
      
      To prepare for their removal, convert simple union ChardevBackend to
      an equivalent flat one.  Adds some boilerplate to the schema, which is
      a bit ugly, but a lot easier to maintain than the simple union
      feature.
      
      Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20210917143134.412106-8-armbru@redhat.com>
      [Missing conditionals added]
      3218c0e9
    • Markus Armbruster's avatar
      qapi: Convert simple union MemoryDeviceInfo to flat one · db6a252b
      Markus Armbruster authored
      
      Simple unions predate flat unions.  Having both complicates the QAPI
      schema language and the QAPI generator.  We haven't been using simple
      unions in new code for a long time, because they are less flexible and
      somewhat awkward on the wire.
      
      To prepare for their removal, convert simple union MemoryDeviceInfo to
      an equivalent flat one.  Adds some boilerplate to the schema, which is
      a bit ugly, but a lot easier to maintain than the simple union
      feature.
      
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20210917143134.412106-7-armbru@redhat.com>
      db6a252b
    • Markus Armbruster's avatar
      qapi: Convert simple union TpmTypeOptions to flat one · 39dc3e4a
      Markus Armbruster authored
      
      Simple unions predate flat unions.  Having both complicates the QAPI
      schema language and the QAPI generator.  We haven't been using simple
      unions in new code for a long time, because they are less flexible and
      somewhat awkward on the wire.
      
      To prepare for their removal, convert simple union TpmTypeOptions to
      an equivalent flat one, with existing enum TpmType replacing implicit
      enum TpmTypeOptionsKind.  Adds some boilerplate to the schema, which
      is a bit ugly, but a lot easier to maintain than the simple union
      feature.
      
      Cc: Stefan Berger <stefanb@linux.vnet.ibm.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Acked-by: default avatarStefan Berger <stefanb@linux.ibm.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20210917143134.412106-6-armbru@redhat.com>
      [Indentation tidied up]
      39dc3e4a
  2. Sep 25, 2021
  3. Sep 24, 2021
    • Richard Henderson's avatar
      Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20210921' into staging · 11a11998
      Richard Henderson authored
      
      Move cpu_signal_handler declaration.
      Restrict cpu_handle_halt to sysemu.
      Make do_unaligned_access noreturn.
      Misc tcg/mips cleanup
      Misc tcg/sparc cleanup
      Misc tcg/riscv cleanup
      
      # gpg: Signature made Tue 21 Sep 2021 10:47:29 PM EDT
      # gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
      # gpg:                issuer "richard.henderson@linaro.org"
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [ultimate]
      
      * remotes/rth/tags/pull-tcg-20210921:
        tcg/riscv: Remove add with zero on user-only memory access
        hw/core: Make do_unaligned_access noreturn
        tcg/sparc: Introduce tcg_out_mov_delay
        tcg/sparc: Drop inline markers
        tcg/mips: Drop special alignment for code_gen_buffer
        tcg/mips: Unset TCG_TARGET_HAS_direct_jump
        tcg/mips: Allow JAL to be out of range in tcg_out_bswap_subr
        tcg/mips: Drop inline markers
        accel/tcg: Restrict cpu_handle_halt() to sysemu
        include/exec: Move cpu_signal_handler declaration
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      11a11998
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-6.2-pull-request' into staging · e749ea24
      Peter Maydell authored
      
      Pull request linux-user 20210924
      
      Clean up siginfo_t handling for arm, aarch64
      
      # gpg: Signature made Fri 24 Sep 2021 14:56:12 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/linux-user-for-6.2-pull-request:
        linux-user/aarch64: Use force_sig_fault()
        linux-user/arm: Use force_sig_fault()
        linux-user: Provide new force_sig_fault() function
        linux-user: Zero out target_siginfo_t in force_sig()
        linux-user/arm: Use force_sig() to deliver fpa11 emulation SIGFPE
        linux-user/arm: Set siginfo_t addr field for SIGTRAP signals
        linux-user/aarch64: Set siginfo_t addr field for SIGTRAP signals
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      e749ea24
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/nvme/tags/nvme-next-pull-request' into staging · 73257aa0
      Peter Maydell authored
      
      hw/nvme updates
      
      # gpg: Signature made Fri 24 Sep 2021 07:44:23 BST
      # gpg:                using RSA key 522833AA75E2DCE6A24766C04DE1AF316D4F0DE9
      # gpg: Good signature from "Klaus Jensen <its@irrelevant.dk>" [unknown]
      # gpg:                 aka "Klaus Jensen <k.jensen@samsung.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: DDCA 4D9C 9EF9 31CC 3468  4272 63D5 6FC5 E55D A838
      #      Subkey fingerprint: 5228 33AA 75E2 DCE6 A247  66C0 4DE1 AF31 6D4F 0DE9
      
      * remotes/nvme/tags/nvme-next-pull-request:
        hw/nvme: Return error for fused operations
        hw/nvme: fix verification of select field in namespace attachment
        hw/nvme: fix validation of ASQ and ACQ
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      73257aa0
    • Pankaj Raghav's avatar
      hw/nvme: Return error for fused operations · c53a9a91
      Pankaj Raghav authored
      
      Currently, FUSED operations are not supported by QEMU. As per the 1.4 SPEC,
      controller should abort the command that requested a fused operation with
      an INVALID FIELD error code if they are not supported.
      
      Changes from v1:
      Added FUSE flag check also to the admin cmd processing as the FUSED
      operations are mentioned in the general SQE section in the SPEC.
      
      Signed-off-by: default avatarPankaj Raghav <p.raghav@samsung.com>
      Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
      Signed-off-by: default avatarKlaus Jensen <k.jensen@samsung.com>
      c53a9a91
    • Naveen Nagar's avatar
      hw/nvme: fix verification of select field in namespace attachment · 07a3dfa7
      Naveen Nagar authored
      
      Fix is added to check for reserved value in select field for
      namespace attachment
      
      CC: Minwoo Im <minwoo.im.dev@gmail.com>
      Signed-off-by: default avatarNaveen Nagar <naveen.n1@samsung.com>
      Signed-off-by: default avatarKlaus Jensen <k.jensen@samsung.com>
      07a3dfa7
    • Klaus Jensen's avatar
      hw/nvme: fix validation of ASQ and ACQ · fd761337
      Klaus Jensen authored
      
      Address 0x0 is a valid address. Fix the admin submission and completion
      queue address validation to not error out on this.
      
      Signed-off-by: default avatarKlaus Jensen <k.jensen@samsung.com>
      Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
      fd761337
  4. Sep 23, 2021
  5. Sep 22, 2021
  6. Sep 21, 2021
    • Richard Henderson's avatar
      Merge remote-tracking branch 'remotes/alistair23/tags/pull-riscv-to-apply-20210921' into staging · 2c3e83f9
      Richard Henderson authored
      
      Second RISC-V PR for QEMU 6.2
      
       - ePMP CSR address updates
       - Convert internal interrupts to use QEMU GPIO lines
       - SiFive PWM support
       - Support for RISC-V ACLINT
       - SiFive PDMA fixes
       - Update to u-boot instructions for sifive_u
       - mstatus.SD bug fix for hypervisor extensions
       - OpenTitan fix for USB dev address
      
      # gpg: Signature made Mon 20 Sep 2021 11:52:26 PM PDT
      # gpg:                using RSA key F6C4AC46D4934868D3B8CE8F21E10D29DF977054
      # gpg: Good signature from "Alistair Francis <alistair@alistair23.me>" [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: F6C4 AC46 D493 4868 D3B8  CE8F 21E1 0D29 DF97 7054
      
      * remotes/alistair23/tags/pull-riscv-to-apply-20210921: (21 commits)
        hw/riscv: opentitan: Correct the USB Dev address
        target/riscv: csr: Rename HCOUNTEREN_CY and friends
        target/riscv: Backup/restore mstatus.SD bit when virtual register swapped
        docs/system/riscv: sifive_u: Update U-Boot instructions
        hw/dma: sifive_pdma: don't set Control.error if 0 bytes to transfer
        hw/dma: sifive_pdma: allow non-multiple transaction size transactions
        hw/dma: sifive_pdma: claim bit must be set before DMA transactions
        hw/dma: sifive_pdma: reset Next* registers when Control.claim is set
        hw/riscv: virt: Add optional ACLINT support to virt machine
        hw/riscv: virt: Re-factor FDT generation
        hw/intc: Upgrade the SiFive CLINT implementation to RISC-V ACLINT
        hw/intc: Rename sifive_clint sources to riscv_aclint sources
        sifive_u: Connect the SiFive PWM device
        hw/timer: Add SiFive PWM support
        hw/intc: ibex_timer: Convert the timer to use RISC-V CPU GPIO lines
        hw/intc: sifive_plic: Convert the PLIC to use RISC-V CPU GPIO lines
        hw/intc: ibex_plic: Convert the PLIC to use RISC-V CPU GPIO lines
        hw/intc: sifive_clint: Use RISC-V CPU GPIO lines
        target/riscv: Expose interrupt pending bits as GPIO lines
        target/riscv: Fix satp write
        ...
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      2c3e83f9
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20210921' into staging · 81ceb36b
      Peter Maydell authored
      
      target-arm queue:
       * Optimize codegen for MVE when predication not active
       * hvf: Add Apple Silicon support
       * hw/intc: Set GIC maintenance interrupt level to only 0 or 1
       * Fix mishandling of MVE FPSCR.LTPSIZE reset for usermode emulator
       * elf2dmp: Fix coverity nits
      
      # gpg: Signature made Tue 21 Sep 2021 16:31:17 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-20210921: (27 commits)
        target/arm: Optimize MVE 1op-immediate insns
        target/arm: Optimize MVE VSLI and VSRI
        target/arm: Optimize MVE VSHLL and VMOVL
        target/arm: Optimize MVE VSHL, VSHR immediate forms
        target/arm: Optimize MVE VMVN
        target/arm: Optimize MVE VDUP
        target/arm: Optimize MVE VNEG, VABS
        target/arm: Optimize MVE arithmetic ops
        target/arm: Optimize MVE logic ops
        target/arm: Add TB flag for "MVE insns not predicated"
        target/arm: Enforce that FPDSCR.LTPSIZE is 4 on inbound migration
        target/arm: Avoid goto_tb if we're trying to exit to the main loop
        hvf: arm: Add rudimentary PMC support
        arm: Add Hypervisor.framework build target
        hvf: arm: Implement PSCI handling
        hvf: arm: Implement -cpu host
        arm/hvf: Add a WFI handler
        hvf: Add Apple Silicon support
        hvf: Introduce hvf_arch_init() callback
        hvf: Add execute to dirty log permission bitmap
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      81ceb36b
    • Peter Maydell's avatar
      target/arm: Optimize MVE 1op-immediate insns · 4b445c92
      Peter Maydell authored
      
      Optimize the MVE 1op-immediate insns (VORR, VBIC, VMOV) to
      use TCG vector ops when possible.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20210913095440.13462-13-peter.maydell@linaro.org
      4b445c92
    • Peter Maydell's avatar
      target/arm: Optimize MVE VSLI and VSRI · ce75c43f
      Peter Maydell authored
      
      Optimize the MVE shift-and-insert insns by using TCG
      vector ops when possible.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20210913095440.13462-12-peter.maydell@linaro.org
      ce75c43f
    • Peter Maydell's avatar
      target/arm: Optimize MVE VSHLL and VMOVL · a7789fab
      Peter Maydell authored
      
      Optimize the MVE VSHLL insns by using TCG vector ops when possible.
      This includes the VMOVL insn, which we handle in mve.decode as "VSHLL
      with zero shift count".
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20210913095440.13462-11-peter.maydell@linaro.org
      a7789fab
    • Peter Maydell's avatar
      target/arm: Optimize MVE VSHL, VSHR immediate forms · 752970ef
      Peter Maydell authored
      
      Optimize the MVE VSHL and VSHR immediate forms by using TCG vector
      ops when possible.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20210913095440.13462-10-peter.maydell@linaro.org
      752970ef
    • Peter Maydell's avatar
      target/arm: Optimize MVE VMVN · 5cf525a8
      Peter Maydell authored
      
      Optimize the MVE VMVN insn by using TCG vector ops when possible.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20210913095440.13462-9-peter.maydell@linaro.org
      5cf525a8
    • Peter Maydell's avatar
      target/arm: Optimize MVE VDUP · f8d94803
      Peter Maydell authored
      
      Optimize the MVE VDUP insns by using TCG vector ops when possible.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20210913095440.13462-8-peter.maydell@linaro.org
      f8d94803
    • Peter Maydell's avatar
      target/arm: Optimize MVE VNEG, VABS · 4b1561c4
      Peter Maydell authored
      
      Optimize the MVE VNEG and VABS insns by using TCG
      vector ops when possible.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20210913095440.13462-7-peter.maydell@linaro.org
      4b1561c4
Loading