Skip to content
Snippets Groups Projects
  1. Nov 07, 2023
    • Ilya Leoshkevich's avatar
      tests/tcg/s390x: Test CLC with inaccessible second operand · 43fecbe7
      Ilya Leoshkevich authored
      
      Add a small test to prevent regressions.
      
      Signed-off-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-ID: <20231106093605.1349201-3-iii@linux.ibm.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      43fecbe7
    • Ilya Leoshkevich's avatar
      target/s390x: Fix CLC corrupting cc_src · aba2ec34
      Ilya Leoshkevich authored
      CLC updates cc_src before accessing the second operand; if the latter
      is inaccessible, the former ends up containing a bogus value.
      
      Fix by reading cc_src into a temporary first.
      
      Fixes: 4f7403d5 ("target-s390: Convert CLC")
      Closes: https://gitlab.com/qemu-project/qemu/-/issues/1865
      
      
      Cc: qemu-stable@nongnu.org
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Message-ID: <20231106093605.1349201-2-iii@linux.ibm.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      aba2ec34
    • Philippe Mathieu-Daudé's avatar
      target/s390x/cpu_models: Use 'first_cpu' in s390_get_feat_block() · ad63e6d6
      Philippe Mathieu-Daudé authored
      
      We already have a global 'first_cpu' variable storing a pointer
      to the first CPU, no need to use a static one.
      
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Message-ID: <20231030093150.65297-1-philmd@linaro.org>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      ad63e6d6
    • Heiko Carstens's avatar
      s390/sclp: fix SCLP facility map · 81f99382
      Heiko Carstens authored
      
      Qemu's SCLP implementation incorrectly reports that it supports CPU
      reconfiguration. If a guest issues a CPU reconfiguration request it
      is rejected as invalid command.
      
      Fix the SCLP_HAS_CPU_INFO mask, and remove the unused
      SCLP_CMDW_CONFIGURE_CPU and SCLP_CMDW_DECONFIGURE_CPU defines.
      
      Reviewed-by: default avatarEric Farman <farman@linux.ibm.com>
      Reviewed-by: default avatarHalil Pasic <pasic@linux.ibm.com>
      Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
      Message-ID: <20231024100703.929679-1-hca@linux.ibm.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      81f99382
    • Thomas Huth's avatar
      tests/avocado: Allow newer versions of tesseract in the nextcube test · 645198d5
      Thomas Huth authored
      
      Current Linux distros ship version 5 of the tesseract OCR software,
      so the nextcube screen test is ignored there. Let's make the check
      more flexible to allow newer versions, too, and remove the old v3
      test since most Linux distros don't ship this version anymore.
      
      Message-ID: <20231101204323.35533-1-huth@tuxfamily.org>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Signed-off-by: default avatarThomas Huth <huth@tuxfamily.org>
      645198d5
    • Thomas Huth's avatar
      MAINTAINERS: Add artist.c to the hppa machine section · e416fd79
      Thomas Huth authored
      
      The artist graphics adapter is only used by the hppa machine, so
      let's add this file to the corresponding section.
      
      Message-ID: <20231107103044.15089-1-thuth@redhat.com>
      Acked-by: default avatarHelge Deller <deller@gmx.de>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      e416fd79
    • Thomas Huth's avatar
      MAINTAINERS: Add the virtio-gpu documentation to the corresponding section · 853c014b
      Thomas Huth authored
      
      Add virtio-gpu.rst to the corresponding section in MAINTAINERS, so that
      the maintainers gets CC:-ed on corresponding patches.
      
      Message-ID: <20231027060808.242442-1-thuth@redhat.com>
      Reviewed-by: default avatarManos Pitsidianakis <manos.pitsidianakis@linaro.org>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      853c014b
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-riscv-to-apply-20231107' of https://github.com/alistair23/qemu into staging · 8aba939e
      Stefan Hajnoczi authored
      Third RISC-V PR for 8.2
      
       * Rename ext_icboz to ext_zicboz
       * Rename ext_icbom to ext_zicbom
       * Rename ext_icsr to ext_zicsr
       * Rename ext_ifencei to ext_zifencei
       * Add RISC-V Virtual IRQs and IRQ filtering support
       * Change default linux-user cpu to 'max'
       * Update 'virt' machine core limit
       * Add query-cpu-model-expansion API
       * Rename epmp to smepmp and expose the extension
       * Clear pmp/smepmp bits on reset
       * Ignore pmp writes when RW=01
       * Support zicntr/zihpm flags and disable support
       * Correct CSR_MSECCFG operations
       * Update mail address for Weiwei Li
       * Update RISC-V vector crypto to ratified v1.0.0
       * Clear the Ibex/OpenTitan SPI interrupts even if disabled
       * Set the OpenTitan priv to 1.12.0
       * Support discontinuous PMU counters
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEEaukCtqfKh31tZZKWr3yVEwxTgBMFAmVJoOEACgkQr3yVEwxT
      # gBPwcw/5AXgSVu521IHpobofq4Skc2rpO9P0Hep3IniBuS+5+h2XM3fwWNBaeeGj
      # LZgdXDrCfcCnPuFh2I5j1D885xJDncDF4LET9EFtxK+BTT8eC5JpaCnORdV3Zd2T
      # C7qdq1r4J/wKBel3cAz1jlLXc2Pssle4NFaMZGmOGlNX/mLJUYkI6BwKG9wNiCI+
      # cCRQW5bEv9g8XzPYPsIKhX9aTegDKdV5x4Xj3YyVs8qkZTVM7Ona8GTpy6eShNfL
      # h/RW+yvSxLwfKC9YJHesjI1oqhLsAuA7hFu5AVHiedFNAD5FevMZsZwrqjrmeBOG
      # 5awBw9XgfXFFl7jQ0VQVRknt/PFANzTmGGbjLUkaXgJ6iTmH7oIMzwbkx2pM/0Qd
      # HV2EboUPe5rJl0SNhcDMCJkYJYpt4z6TVXFpN5p10WU4K1AJXZf9P3YkChcxWiSK
      # B4DlY4ax3W77voySwbKCvJRIRWCFQZmtl7doFY5dEQz2ERcNfI7VIB1GKIj7BlGm
      # AVTCc5G9KghsaB8q0BzYbDplzCggdaaUBRgpIgLS/n22GKJlOisFwMCawWquPkEw
      # i0t3ftt+Ket4Qnnq+dO4W3ehR4qW1/XatCWgQ3NCSgUeS4/9VK3h/nz5t+L7iKwp
      # mjp86gNN11wcJRsBIIV7nOAmSAs9ybCm2F4J6YAyh3n1IlRVN0Q=
      # =2A+W
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 07 Nov 2023 10:28:49 HKT
      # gpg:                using RSA key 6AE902B6A7CA877D6D659296AF7C95130C538013
      # 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: 6AE9 02B6 A7CA 877D 6D65  9296 AF7C 9513 0C53 8013
      
      * tag 'pull-riscv-to-apply-20231107' of https://github.com/alistair23/qemu
      
      : (49 commits)
        docs/about/deprecated: Document RISC-V "pmu-num" deprecation
        target/riscv: Add "pmu-mask" property to replace "pmu-num"
        target/riscv: Use existing PMU counter mask in FDT generation
        target/riscv: Don't assume PMU counters are continuous
        target/riscv: Propagate error from PMU setup
        target/riscv: cpu: Set the OpenTitan priv to 1.12.0
        hw/ssi: ibex_spi_host: Clear the interrupt even if disabled
        disas/riscv: Replace TABs with space
        disas/riscv: Add support for vector crypto extensions
        disas/riscv: Add rv_codec_vror_vi for vror.vi
        disas/riscv: Add rv_fmt_vd_vs2_uimm format
        target/riscv: Move vector crypto extensions to riscv_cpu_extensions
        target/riscv: Expose Zvks[c|g] extnesion properties
        target/riscv: Add cfg properties for Zvks[c|g] extensions
        target/riscv: Expose Zvkn[c|g] extnesion properties
        target/riscv: Add cfg properties for Zvkn[c|g] extensions
        target/riscv: Expose Zvkb extension property
        target/riscv: Replace Zvbb checking by Zvkb
        target/riscv: Add cfg property for Zvkb extension
        target/riscv: Expose Zvkt extension property
        ...
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      8aba939e
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-tcg-20231106' of https://gitlab.com/rth7680/qemu into staging · 74949263
      Stefan Hajnoczi authored
      util: Add cpuinfo for loongarch64
      tcg/loongarch64: Use cpuinfo.h
      tcg/loongarch64: Improve register allocation for INDEX_op_qemu_ld_a*_i128
      host/include/loongarch64: Add atomic16 load and store
      tcg: Move expanders out of line
      tcg/mips: Always implement movcond
      tcg/mips: Implement neg opcodes
      tcg/loongarch64: Implement neg opcodes
      tcg: Make movcond and neg required opcodes
      tcg: Optimize env memory operations
      tcg: Canonicalize sub of immediate to add
      tcg/sparc64: Implement tcg_out_extrl_i64_i32
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmVJpT0dHHJpY2hhcmQu
      # aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV9i7QgAtjxUB3y/caCPp0Me
      # 3cXYtpL1vNxx+cTESGMlmIRSji+cEOxYSpnY0itxXcKpcwP8Au8eoTe85NxyIllg
      # 2R/SA2jlmrmiipI+bwb0UBCy+BzUfMgmegA88K2W22J0fetwIy19PN9ORmYdLiYE
      # /pWNFOSPzhYEJgOw7V2MwciUv3llolMOfxU7VT4oVaCknZRsyaGUwl4uTT4GdPuK
      # p29O9nziyKDmNTqJ9SKKll5bzwCMAgkn2lUcMGf+rpl7ZxjgvysUYrGXKmOnj4Uu
      # eCU2d3ZHoSspcYEjbFASlyPd7z5apGI8Iq2K35FUhURFPv06Su/bIGOOD4ujP2Qp
      # vc/bFQ==
      # =Mvaf
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 07 Nov 2023 10:47:25 HKT
      # gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
      # gpg:                issuer "richard.henderson@linaro.org"
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [full]
      # Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F
      
      * tag 'pull-tcg-20231106' of https://gitlab.com/rth7680/qemu
      
      : (35 commits)
        tcg/sparc64: Implement tcg_out_extrl_i64_i32
        tcg/optimize: Canonicalize sub2 with constants to add2
        tcg/optimize: Canonicalize subi to addi during optimization
        tcg: Canonicalize subi to addi during opcode generation
        tcg/optimize: Split out arg_new_constant
        tcg: Eliminate duplicate env store operations
        tcg/optimize: Optimize env memory operations
        tcg/optimize: Split out cmp_better_copy
        tcg/optimize: Pipe OptContext into reset_ts
        tcg: Don't free vector results
        tcg: Remove TCG_TARGET_HAS_neg_{i32,i64}
        tcg/loongarch64: Implement neg opcodes
        tcg/mips: Implement neg opcodes
        tcg: Remove TCG_TARGET_HAS_movcond_{i32,i64}
        tcg/mips: Always implement movcond
        tcg/mips: Split out tcg_out_setcond_int
        tcg: Move tcg_temp_free_* out of line
        tcg: Move tcg_temp_new_*, tcg_global_mem_new_* out of line
        tcg: Move tcg_constant_* out of line
        tcg: Unexport tcg_gen_op*_{i32,i64}
        ...
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      74949263
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-block-2023-11-06' of https://gitlab.com/hreitz/qemu into staging · 80aaef96
      Stefan Hajnoczi authored
      Block patches:
      - One patch to make qcow2's discard-no-unref option do better what it is
        supposed to do (i.e. prevent fragmentation)
      - Two fixes for zoned requests
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJGBAABCAAwFiEEy2LXoO44KeRfAE00ofpA0JgBnN8FAmVJHbgSHGhyZWl0ekBy
      # ZWRoYXQuY29tAAoJEKH6QNCYAZzfLn4QAKxuUYZaXirv6K4U2tW4aAJtc5uESdwv
      # WYhG7YU7MleBGCY0fRoih5thrPrzRLC8o1QhbRcA36+/PAZf4BYrJEfqLUdzuN5x
      # 6Vb1n3NRUzPD1+VfL/B9hVZhFbtTOUZuxPGEqCoHAmqBaeKuYRT1bLZbtRtPVLSk
      # 5eTMiyrpRMlBWc7O71eGKLqU4k0vAznwHBGf2Z93qWAsKcRZCwbAWYa7Q6rJ9jJ8
      # 1jNsQuAk0p74/uGEpFhoEVrFEcV6pMbI4+jB9i0t9YYxT0tLIdIX1VUx+AHJfItk
      # IF2stB6SFOaAy2W3Fn+0oJvz40aMLzg9VjEeTpGmdlKC67ZTYa6Obwzy5WNLPIap
      # k7VUheUEe8qoKUtxQNxGLR/HKEJSFXyhU0lgAGxE1gl2xc1QFFFsrimpwFd3d37j
      # 3PwfhjARHonf4ZXgsvtIjb7nG9seMZYO7Vht0OztJyW8c2XN5OFVPir9xLbd9VUg
      # wZNGB8jAsHgj77+S/mRIwpP+laKL8wB7zYZ1mgFI98QJIYqL8tGdV/IiUhLljHzc
      # XAmwekOhBMMbgHhliBy9zDuTy59+zZ0FoxZPn/JvBjqBAkEnz9EbhHxi2imQg+1d
      # XSoLbx1X1yEbepWz8mCGiveLIPkt+3qMJuuQF76nURaA+nm3tCl/nKca6QLnVKzU
      # 2QtPWS0qRmwd
      # =5w7S
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 07 Nov 2023 01:09:12 HKT
      # gpg:                using RSA key CB62D7A0EE3829E45F004D34A1FA40D098019CDF
      # gpg:                issuer "hreitz@redhat.com"
      # gpg: Good signature from "Hanna Reitz <hreitz@redhat.com>" [unknown]
      # gpg: WARNING: The key's User ID is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: CB62 D7A0 EE38 29E4 5F00  4D34 A1FA 40D0 9801 9CDF
      
      * tag 'pull-block-2023-11-06' of https://gitlab.com/hreitz/qemu
      
      :
        file-posix: fix over-writing of returning zone_append offset
        block/file-posix: fix update_zones_wp() caller
        qcow2: keep reference on zeroize with discard-no-unref enabled
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      80aaef96
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-target-arm-20231106' of... · f6b174ff
      Stefan Hajnoczi authored
      Merge tag 'pull-target-arm-20231106' of https://git.linaro.org/people/pmaydell/qemu-arm into staging
      
      target-arm queue:
       * hw/arm/virt: fix PMU IRQ registration
       * hw/arm/virt: Report correct register sizes in ACPI DBG2/SPCR tables
       * hw/i386/intel_iommu: vtd_slpte_nonzero_rsvd(): assert no overflow
       * util/filemonitor-inotify: qemu_file_monitor_watch(): assert no overflow
       * mc146818rtc: rtc_set_time(): initialize tm to zeroes
       * block/nvme: nvme_process_completion() fix bound for cid
       * hw/core/loader: gunzip(): initialize z_stream
       * io/channel-socket: qio_channel_socket_flush(): improve msg validation
       * hw/arm/vexpress-a9: Remove useless mapping of RAM at address 0
       * target/arm: Fix A64 LDRA immediate decode
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAmVJBtUZHHBldGVyLm1h
      # eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3qYTEACYqLV57JezgRFXzMEwKX3l
      # 9IYbFje+lGemobdJOEHhRvXjCNb+5TwhEfQasri0FBzokw16S3WOOF7roGb6YOU1
      # od1SGiS2AbrmiazlBpamVO8z0WAEgbnXIoQa/3xKAGPJXszD2zK+06KnXS5xuCuD
      # nHojzIx7Gv4HEIs4huY39/YL2HMaxrqvXC8IAu51eqY+TPnETT+WI3HxlZ2OMIsn
      # 1Jnn+FeZfA1bhKx4JsD9MyHM1ovbjOwYkHOlzjU6fmTFFPGKRy0nxnjMNCBcXHQ+
      # unemc/9BhEFup76tkX+JIlSBrPre5Mnh93DsGKSapwKPKq+fQhUDmzXY2r3OvQZX
      # ryxO4PJkCNTM1wZU6GeEDPWVfhgBKHUMv+tr9Mf9iBlyXRsmXLSEl7AFUUaFlgAL
      # dSMyiAaUlfvGa7Gtta9eFAJ/GeaiuJu2CYq6lvtRrNIHflLm3gVCef8gmwM5Eqxm
      # 3PNzEoabKyQQfz69j9RCLpoutMBq1sg2IzxW8UjAFupugcIABjLf0Sl11qA0/B89
      # YX67B0ynQD9ajI2GS8ULid/tvEiJVgdZ2Ua3U3xpG54vKG1/54EUiCP8TtoIuoMy
      # bKg8AU9EIPN962PxoAwS+bSSdCu7/zBjVpg4T/zIzWRdgSjRsE21Swu5Ca934ng5
      # VpVUuiwtI/zvHgqaiORu+w==
      # =UbqJ
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 06 Nov 2023 23:31:33 HKT
      # gpg:                using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
      # gpg:                issuer "peter.maydell@linaro.org"
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [full]
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>" [full]
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" [full]
      # gpg:                 aka "Peter Maydell <peter@archaic.org.uk>" [unknown]
      # Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE
      
      * tag 'pull-target-arm-20231106' of https://git.linaro.org/people/pmaydell/qemu-arm
      
      :
        target/arm: Fix A64 LDRA immediate decode
        hw/arm/vexpress-a9: Remove useless mapping of RAM at address 0
        io/channel-socket: qio_channel_socket_flush(): improve msg validation
        hw/core/loader: gunzip(): initialize z_stream
        block/nvme: nvme_process_completion() fix bound for cid
        mc146818rtc: rtc_set_time(): initialize tm to zeroes
        util/filemonitor-inotify: qemu_file_monitor_watch(): assert no overflow
        hw/i386/intel_iommu: vtd_slpte_nonzero_rsvd(): assert no overflow
        tests/qtest/bios-tables-test: Update virt SPCR and DBG2 golden references
        hw/arm/virt: Report correct register sizes in ACPI DBG2/SPCR tables.
        tests/qtest/bios-tables-test: Allow changes to virt SPCR and DBG2
        hw/arm/virt: fix PMU IRQ registration
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      f6b174ff
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-vfio-20231106' of https://github.com/legoater/qemu into staging · bb59f354
      Stefan Hajnoczi authored
      vfio queue:
      
      * Support for non 64b IOVA space
      * Introduction of a PCIIOMMUOps callback structure to ease future
        extensions
      * Fix for a buffer overrun when writing the VF token
      * PPC cleanups preparing ground for IOMMUFD support
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEEoPZlSPBIlev+awtgUaNDx8/77KEFAmVI+bIACgkQUaNDx8/7
      # 7KHW4g/9FmgX0k2Elm1BAul3slJtuBT8/iHKfK19rhXICxhxS5xBWJA8FmosTWAT
      # 91YqQJhOHARxLd9VROfv8Fq8sAo+Ys8bP3PTXh5satjY5gR9YtmMSVqvsAVLn7lv
      # a/0xp7wPJt2UeKzvRNUqFXNr7yHPwxFxbJbmmAJbNte8p+TfE2qvojbJnu7BjJbg
      # sTtS/vFWNJwtuNYTkMRoiZaUKEoEZ8LnslOqKUjgeO59g4i3Dq8e2JCmHANPFWUK
      # cWmr7AqcXgXEnLSDWTtfN53bjcSCYkFVb4WV4Wv1/7hUF5jQ4UR0l3B64xWe0M3/
      # Prak3bWOM/o7JwLBsgaWPngXA9V0WFBTXVF4x5qTwhuR1sSV8MxUvTKxI+qqiEzA
      # FjU89oSZ+zXId/hEUuTL6vn1Th8/6mwD0L9ORchNOQUKzCjBzI4MVPB09nM3AdPC
      # LGThlufsZktdoU2KjMHpc+gMIXQYsxkgvm07K5iZTZ5eJ4tV5KB0aPvTZppGUxe1
      # YY9og9F3hxjDHQtEuSY2rzBQI7nrUpd1ZI5ut/3ZgDWkqD6aGRtMme4n4GsGsYb2
      # Ht9+d2RL9S8uPUh+7rV8K/N3+vXgXRaEYTuAScKtflEbA7YnZA5nUdMng8x0kMTQ
      # Y73XCd4UGWDfSSZsgaIHGkM/MRIHgmlrfcwPkWqWW9vF+92O6Hw=
      # =/Du0
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 06 Nov 2023 22:35:30 HKT
      # gpg:                using RSA key A0F66548F04895EBFE6B0B6051A343C7CFFBECA1
      # gpg: Good signature from "Cédric Le Goater <clg@redhat.com>" [unknown]
      # gpg:                 aka "Cédric Le Goater <clg@kaod.org>" [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: A0F6 6548 F048 95EB FE6B  0B60 51A3 43C7 CFFB ECA1
      
      * tag 'pull-vfio-20231106' of https://github.com/legoater/qemu
      
      : (22 commits)
        vfio/common: Move vfio_host_win_add/del into spapr.c
        vfio/spapr: Make vfio_spapr_create/remove_window static
        vfio/container: Move spapr specific init/deinit into spapr.c
        vfio/container: Move vfio_container_add/del_section_window into spapr.c
        vfio/container: Move IBM EEH related functions into spapr_pci_vfio.c
        util/uuid: Define UUID_STR_LEN from UUID_NONE string
        util/uuid: Remove UUID_FMT_LEN
        vfio/pci: Fix buffer overrun when writing the VF token
        util/uuid: Add UUID_STR_LEN definition
        hw/pci: modify pci_setup_iommu() to set PCIIOMMUOps
        test: Add some tests for range and resv-mem helpers
        virtio-iommu: Consolidate host reserved regions and property set ones
        virtio-iommu: Implement set_iova_ranges() callback
        virtio-iommu: Record whether a probe request has been issued
        range: Introduce range_inverse_array()
        virtio-iommu: Introduce per IOMMUDevice reserved regions
        util/reserved-region: Add new ReservedRegion helpers
        range: Make range_compare() public
        virtio-iommu: Rename reserved_regions into prop_resv_regions
        vfio: Collect container iova range info
        ...
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      bb59f354
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-hv-balloon-20231106' of https://github.com/maciejsszmigiero/qemu into staging · 17735e93
      Stefan Hajnoczi authored
      Hyper-V Dynamic Memory protocol driver.
      
      This driver is like virtio-balloon on steroids for Windows guests:
      it allows both changing the guest memory allocation via ballooning and
      inserting pieces of extra RAM into it on demand from a provided memory
      backend via Windows-native Hyper-V Dynamic Memory protocol.
      
      * Preparatory patches to support empty memory devices and ones with
      large alignment requirements.
      
      * Revert of recently added "hw/virtio/virtio-pmem: Replace impossible
      check by assertion" commit 5960f254 since this series makes this
      situation possible again.
      
      * Protocol definitions.
      
      * Hyper-V DM protocol driver (hv-balloon) base (ballooning only).
      
      * Hyper-V DM protocol driver (hv-balloon) hot-add support.
      
      * qapi query-memory-devices support for the driver.
      
      * qapi HV_BALLOON_STATUS_REPORT event.
      
      * The relevant PC machine plumbing.
      
      * New MAINTAINERS entry for the above.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQGzBAABCAAdFiEE4ndqq6COJv9aG0oJUrHW6VHQzgcFAmVI81IACgkQUrHW6VHQ
      # zgdzTgv+I5eV2R01YLOBBJhBjzxZ4/BUqkuUHNxHpfjuCqEIzPb7FIfoZ4ZyXZFT
      # YJdSE4lPeTZLrmmi/Nt6G0rUKDvdCeIgkS2VLHFSsTV8IzcT71BTRGzV0zAjUF5v
      # yDH6uzo6e9gmaziIalRjibUxSDjCQmoCifms2rS2DwazADudUp+naGfm+3uyA0gM
      # raOfBfRkNZsDqhXg2ayuqPIES75xQONoON9xYPKDAthS48POEbqtWBKuFopr3kXY
      # y0eph+NAw+RajCyLYKM3poIgaSu3l4WegInuKQffzqKR8dxrbwPdCmtgo6NSHx0W
      # uDfl7FUBnGzrR18VU4ZfTSrF5SVscGwF9EL7uocJen15inJjl1q3G53uZgyGzHLC
      # cw8fKMjucmE8njQR2qiMyX0b+T4+9nKO1rykBgTG/+c9prRUVoxYpFCF117Ei0U8
      # QzLGACW1oK+LV41bekWAye7w9pShUtFaxffhPbJeZDDGh7q0x61R3Z3yKkA07p46
      # /YWWFWUD
      # =RAb0
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 06 Nov 2023 22:08:18 HKT
      # gpg:                using RSA key E2776AABA08E26FF5A1B4A0952B1D6E951D0CE07
      # gpg: Good signature from "Maciej S. Szmigiero <mail@maciej.szmigiero.name>" [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: 727A 0D4D DB9E D9F6 039B  ECEF 847F 5E37 90CE 0977
      #      Subkey fingerprint: E277 6AAB A08E 26FF 5A1B  4A09 52B1 D6E9 51D0 CE07
      
      * tag 'pull-hv-balloon-20231106' of https://github.com/maciejsszmigiero/qemu
      
      :
        MAINTAINERS: Add an entry for Hyper-V Dynamic Memory Protocol
        hw/i386/pc: Support hv-balloon
        qapi: Add HV_BALLOON_STATUS_REPORT event and its QMP query command
        qapi: Add query-memory-devices support to hv-balloon
        Add Hyper-V Dynamic Memory Protocol driver (hv-balloon) hot-add support
        Add Hyper-V Dynamic Memory Protocol driver (hv-balloon) base
        Add Hyper-V Dynamic Memory Protocol definitions
        memory-device: Drop size alignment check
        Revert "hw/virtio/virtio-pmem: Replace impossible check by assertion"
        memory-device: Support empty memory devices
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      17735e93
    • Stefan Hajnoczi's avatar
      Merge tag 'gpu-pull-request' of https://gitlab.com/marcandre.lureau/qemu into staging · 9f33cf2a
      Stefan Hajnoczi authored
      GPU pull request
      
      Includes:
      - [PATCH] virtio-gpu-rutabaga: Add empty interface to fix arm64 crash
      - [PATCH v2 0/4] Misc ati-vga patches
      - [PATCH v2 0/5] virtio-gpu: add blob migration support
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJQBAABCAA6FiEEh6m9kz+HxgbSdvYt2ujhCXWWnOUFAmVI6rYcHG1hcmNhbmRy
      # ZS5sdXJlYXVAcmVkaGF0LmNvbQAKCRDa6OEJdZac5VdjEAC6xsnITkX5FgJVjDo2
      # XQWGz2MgWIFcqMXYVbz21UgY86KjCE7jVbGL6BkWO8N/XzsP6EUEIcUcHm7KcdwU
      # +csMTjgnZUb97Ov/d27Ge9UYr/9rgozyoQRwvvQYXRFfxTur+b+poodcAOn3Ml3Q
      # vXBTYb0z2FYd85VcVx59w5lFlonER1z4wnQuF4GLCBNIW/GX+S87+xyv1FZCgWku
      # luBhWa7ihVrlrYA2UaoQS7sI2ch/wI9NnfP1p+31Iy/w1wLwQOj9ofTslbehTcvS
      # uDU/+WMkhmlB8LOl7mx8bGHeBab9iUvSz5H5MIfTgrk6hRaaMJp3y2lefsc9cWuA
      # 5aPvj0qouTEkIZ+2aPClcZk11mIbH5lT9eeEYc16Ztrt5VJHXmR7RwF74hHQbxY3
      # LDiRlpvhBfX4muaPw4L1max9kJZdOvo9aQVqKL7hkrTBL/xBmvg40ZRrWDrIvZZg
      # 8TZ8woD2ORiic/hTxmI7waG+f3WozH/drStJrOFpJA7+iFefrHgkv2K7ze9LhWmZ
      # ookM8K96NV6AnPQ39N2nuvQ/Fndqv7Kg4AiOwzj3epfg/rDscaJw9J2JQuCGEiEF
      # KEIt3hyIo/HOXXiwmGqP3BWs90EmMvZTDmAt5e/cT0eQ1jWwJ3Tj8ShVg2S8QW0h
      # TMXdPV7bepd49aaynpGFeADhfw==
      # =k/gN
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 06 Nov 2023 21:31:34 HKT
      # gpg:                using RSA key 87A9BD933F87C606D276F62DDAE8E10975969CE5
      # gpg:                issuer "marcandre.lureau@redhat.com"
      # gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com>" [full]
      # gpg:                 aka "Marc-André Lureau <marcandre.lureau@gmail.com>" [full]
      # Primary key fingerprint: 87A9 BD93 3F87 C606 D276  F62D DAE8 E109 7596 9CE5
      
      * tag 'gpu-pull-request' of https://gitlab.com/marcandre.lureau/qemu
      
      :
        Revert "virtio-gpu: block migration of VMs with blob=true"
        virtio-gpu: add virtio-gpu/blob vmstate subsection
        virtio-gpu: move scanout restoration to post_load
        virtio-gpu: factor out restore mapping
        virtio-gpu: block migration of VMs with blob=true
        ati-vga: Implement fallback for pixman routines
        ati-vga: Add 30 bit palette access register
        ati-vga: Support unaligned access to GPIO DDC registers
        ati-vga: Fix aperture sizes
        virtio-gpu-rutabaga: Add empty interface to fix arm64 crash
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      9f33cf2a
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-xenfv-stable-20231106' of git://git.infradead.org/users/dwmw2/qemu into staging · 54e97162
      Stefan Hajnoczi authored
      Bugfixes for emulated Xen support
      
      Selected bugfixes for mainline and stable, especially to the per-vCPU
      local APIC vector delivery mode for event channel notifications, which
      was broken in a number of ways.
      
      The xen-block driver has been defaulting to the wrong protocol for x86
      guest, and this fixes that — which is technically an incompatible change
      but I'm fairly sure nobody relies on the broken behaviour (and in
      production I *have* seen guests which rely on the correct behaviour,
      which now matches the blkback driver in the Linux kernel).
      
      A handful of other simple fixes for issues which came to light as new
      features (qv) were being developed.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJIBAABCAAyFiEEvgfZ/VSAmrLEsP9fY3Ys2mfi81kFAmVIvv4UHGR3bXcyQGlu
      # ZnJhZGVhZC5vcmcACgkQY3Ys2mfi81nFmRAAvK3VNuGDV56TJqFdtEWD+3jzSZU0
      # CoL1mxggvwnlFn1SdHvbC5jl+UscknErcNbqlxMTTg9jQiiQqzFuaWujJnL0dEOY
      # RJiS2scKln/1gv9NRbLE31FjPwoNz+zJI/iMvdutjT7Ll//v34jY0vd1Y5Wo53ay
      # MBschuuxD1sUUTHNj5f9afrgZaetJfgBSNZraiLR5T2HEadJVJuhItdGxW1+KaPI
      # zBIcflIeZmJl9b/L1a2bP3KJmRo8QzHB56X3uzwkPhYhYSU2dnCaJTLCkiNfK+Qh
      # SgCBMlzsvJbIZqDA9YPOGdKK1ArfTJRmRDwAkqH0YQknQGoIkpN+7eQiiSv6PMS5
      # U/93V7r6MfaftIs6YdWSnFozWeBuyKZL9H2nAXqZgL5t6uEMVR8Un/kFnGfslTFY
      # 9gQ1o4IM6ECLiXhIP/sPNOprrbFb0HU7QPtEDJOxrJzBM+IfLbldRHn4p9CccqQA
      # LHvJF98VhX1d0nA0iZBT3qqfKPbmUhRV9Jrm+WamqNrRXhiGdF8EidsUf8RWX+JD
      # xZWJiqhTwShxdLE6TC/JgFz4cQCVHG8QiZstZUbdq59gtz9YO5PGByMgI3ds7iNQ
      # lGXAPFm+1wU85W4dZOH7qyim6d9ytFm2Fm110BKM8l9B6UKEuKHpsxXMqdo65JXI
      # 7uBKbVpdPKul0DY=
      # =dQ7h
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 06 Nov 2023 18:25:02 HKT
      # gpg:                using RSA key BE07D9FD54809AB2C4B0FF5F63762CDA67E2F359
      # gpg:                issuer "dwmw2@infradead.org"
      # gpg: Good signature from "David Woodhouse <dwmw2@infradead.org>" [unknown]
      # gpg:                 aka "David Woodhouse <dwmw2@exim.org>" [unknown]
      # gpg:                 aka "David Woodhouse <david@woodhou.se>" [unknown]
      # gpg:                 aka "David Woodhouse <dwmw2@kernel.org>" [unknown]
      # gpg: WARNING: The key's User ID is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: BE07 D9FD 5480 9AB2 C4B0  FF5F 6376 2CDA 67E2 F359
      
      * tag 'pull-xenfv-stable-20231106' of git://git.infradead.org/users/dwmw2/qemu
      
      :
        hw/xen: use correct default protocol for xen-block on x86
        hw/xen: take iothread mutex in xen_evtchn_reset_op()
        hw/xen: fix XenStore watch delivery to guest
        hw/xen: don't clear map_track[] in xen_gnttab_reset()
        hw/xen: select kernel mode for per-vCPU event channel upcall vector
        i386/xen: fix per-vCPU upcall vector for Xen emulation
        i386/xen: Don't advertise XENFEAT_supervisor_mode_kernel
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      54e97162
    • Stefan Hajnoczi's avatar
      Merge tag 'q800-for-8.2-pull-request' of https://github.com/vivier/qemu-m68k into staging · b8cdbe0e
      Stefan Hajnoczi authored
      Q800 pull request 20231106
      
      macfb: A/UX fixes for colour LUT
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmVIoJQSHGxhdXJlbnRA
      # dml2aWVyLmV1AAoJEPMMOL0/L748uo0QALGBJCmFWVf/zMdRERqFWXERdZ/dw6H5
      # kDN+EIYzzjCVWRK2YFAoihmiMIVQf7IS8j/ViuChWdvvVaWriOnt2yxB8UTCFaME
      # 4ZoZKu8wCmsENKtAgdU0hORYUr5sVgYlw4Umu+Jxt62UbH2gpm3Ykyxek2Q0B3OA
      # rs8L0Z8YjGALxB8Mf4i/YBREyP+sJDnif2d6wycVf+AXDKBEC7aplKUzYukSd9r5
      # 05VZ1hpamef6uQb7oO9O/dq2mk6+FZSw3mkR1bX8aXQf8UAjmm5Q48bKWW/b+frn
      # kFWwYYy13TgRsvH7B5wNIWzByGwNxdvIfAwycqPrwxXyNeAhidwGHX8U4SR69IGj
      # ayPlIvJ3kBiUyOT49eVAKE2bnO4+MjKzoMehvgfMTRAwrlp/6lIAWnealUAnzKYZ
      # k1DvQgZSbF0dgpyj2iiRMJik3gesJyn1YMwwHMJCmmh9PkXqfqp76CTbUzjWU7RF
      # 77sXgYwMAvEHUeFhjbh0/BqRlggYf+vX6IUUFjDaU2R8Nb8iMrzM4p/27EghRJ7U
      # gW33Z8t8w+TXlUCoHe1ssG0Dx78j1oyKuO9M8LkeHXUXlN2GZAFimCJ6GHfwpoEx
      # +QFhFrwE8dBmsRjoRd+JrqxbnJe4LevvUuku5P4Un/TLYJW/XcKs/A1hlj1aL1Pa
      # U638/cSVdfhs
      # =F4bR
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 06 Nov 2023 16:15:16 HKT
      # 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
      
      * tag 'q800-for-8.2-pull-request' of https://github.com/vivier/qemu-m68k
      
      :
        macfb: allow reads from the DAFB_LUT register
        macfb: allow larger write accesses to the DAFB_LUT register
        macfb: rename DAFB_RESET to DAFB_LUT_INDEX
        macfb: don't clear interrupts when writing to DAFB_RESET
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      b8cdbe0e
    • Rob Bradford's avatar
      docs/about/deprecated: Document RISC-V "pmu-num" deprecation · bc5e8445
      Rob Bradford authored
      
      This has been replaced by a "pmu-mask" property that provides much more
      flexibility.
      
      Signed-off-by: default avatarRob Bradford <rbradford@rivosinc.com>
      Acked-by: default avatarLIU Zhiwei <zhiwei_liu@linux.alibaba.com>
      Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarAtish Patra <atishp@rivosinc.com>
      Message-ID: <20231031154000.18134-6-rbradford@rivosinc.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      bc5e8445
    • Rob Bradford's avatar
      target/riscv: Add "pmu-mask" property to replace "pmu-num" · 69b3849b
      Rob Bradford authored
      
      Using a mask instead of the number of PMU devices supports the accurate
      emulation of platforms that have a discontinuous set of PMU counters.
      
      The "pmu-num" property now generates a warning when used by the user on
      the command line.
      
      Rather than storing the value for "pmu-num" convert it directly to the
      mask if it is specified (overwriting the default "pmu-mask" value)
      likewise the value is calculated from the mask if the property value is
      obtained.
      
      In the unusual situation that both "pmu-mask" and "pmu-num" are provided
      then then the order on the command line determines which takes
      precedence (later overwriting earlier.)
      
      Signed-off-by: default avatarRob Bradford <rbradford@rivosinc.com>
      Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-ID: <20231031154000.18134-5-rbradford@rivosinc.com>
      [Changes by AF
       - Fixup ext_zihpm logic after rebase
      ]
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      69b3849b
    • Rob Bradford's avatar
      target/riscv: Use existing PMU counter mask in FDT generation · 2571a642
      Rob Bradford authored
      
      During the FDT generation use the existing mask containing the enabled
      counters rather then generating a new one. Using the existing mask will
      support the use of discontinuous counters.
      
      Signed-off-by: default avatarRob Bradford <rbradford@rivosinc.com>
      Reviewed-by: default avatarLIU Zhiwei <zhiwei_liu@linux.alibaba.com>
      Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarAtish Patra <atishp@rivosinc.com>
      Message-ID: <20231031154000.18134-4-rbradford@rivosinc.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      2571a642
    • Rob Bradford's avatar
      target/riscv: Don't assume PMU counters are continuous · 7c1bb1d8
      Rob Bradford authored
      
      Check the PMU available bitmask when checking if a counter is valid
      rather than comparing the index against the number of PMUs.
      
      Signed-off-by: default avatarRob Bradford <rbradford@rivosinc.com>
      Reviewed-by: default avatarLIU Zhiwei <zhiwei_liu@linux.alibaba.com>
      Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarAtish Patra <atishp@rivosinc.com>
      Message-ID: <20231031154000.18134-3-rbradford@rivosinc.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      7c1bb1d8
    • Rob Bradford's avatar
      target/riscv: Propagate error from PMU setup · 755b41d0
      Rob Bradford authored
      
      More closely follow the QEMU style by returning an Error and propagating
      it there is an error relating to the PMU setup.
      
      Further simplify the function by removing the num_counters parameter as
      this is available from the passed in cpu pointer.
      
      Signed-off-by: default avatarRob Bradford <rbradford@rivosinc.com>
      Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarLIU Zhiwei <zhiwei_liu@linux.alibaba.com>
      Reviewed-by: default avatarAtish Patra <atishp@rivosinc.com>
      Message-ID: <20231031154000.18134-2-rbradford@rivosinc.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      755b41d0
    • Alistair Francis's avatar
      target/riscv: cpu: Set the OpenTitan priv to 1.12.0 · c541b07d
      Alistair Francis authored
      
      Set the Ibex CPU priv to 1.12.0 to ensure that smepmp/epmp is correctly
      enabled.
      
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231102003424.2003428-3-alistair.francis@wdc.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      c541b07d
    • Alistair Francis's avatar
      hw/ssi: ibex_spi_host: Clear the interrupt even if disabled · d53ead72
      Alistair Francis authored
      
      We currently don't clear the interrupts if they are disabled. This means
      that if an interrupt occurs and the guest disables interrupts the QEMU
      IRQ will remain high.
      
      This doesn't immediately affect guests, but if the
      guest re-enables interrupts it's possible that we will miss an
      interrupt as it always remains set.
      
      Let's update the logic to always call qemu_set_irq() even if the
      interrupts are disabled to ensure we set the level low. The level will
      never be high unless interrupts are enabled, so we won't generate
      interrupts when we shouldn't.
      
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231102003424.2003428-2-alistair.francis@wdc.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      d53ead72
    • Max Chou's avatar
      disas/riscv: Replace TABs with space · 251385fd
      Max Chou authored
      
      Replaces TABs with spaces, making sure to have a consistent coding style
      of 4 space indentations.
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-ID: <20231026151828.754279-15-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      251385fd
    • Max Chou's avatar
      disas/riscv: Add support for vector crypto extensions · 9d92f56d
      Max Chou authored
      
      This patch adds following v1.0.0 ratified vector crypto extensions
      support to the RISC-V disassembler.
      - Zvbb
      - Zvbc
      - Zvkb
      - Zvkg
      - Zvkned
      - Zvknha
      - Zvknhb
      - Zvksed
      - Zvksh
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Message-ID: <20231026151828.754279-14-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      9d92f56d
    • Max Chou's avatar
      disas/riscv: Add rv_codec_vror_vi for vror.vi · 434c609b
      Max Chou authored
      
      Add rv_codec_vror_vi for the vector crypto instruction - vror.vi.
      The rotate amount of vror.vi is defined by combining seperated bits.
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-ID: <20231026151828.754279-13-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      434c609b
    • Max Chou's avatar
      disas/riscv: Add rv_fmt_vd_vs2_uimm format · ea363626
      Max Chou authored
      
      Add rv_fmt_vd_vs2_uimm format for vector crypto instructions.
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-ID: <20231026151828.754279-12-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      ea363626
    • Max Chou's avatar
      target/riscv: Move vector crypto extensions to riscv_cpu_extensions · ea61ef70
      Max Chou authored
      
      Because the vector crypto specification is ratified, so move theses
      extensions from riscv_cpu_experimental_exts to riscv_cpu_extensions.
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231026151828.754279-11-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      ea61ef70
    • Max Chou's avatar
      target/riscv: Expose Zvks[c|g] extnesion properties · b43419f2
      Max Chou authored
      
      Expose the properties of ShangMi Algorithm Suite related extensions
      (Zvks, Zvksc, Zvksg).
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231026151828.754279-10-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      b43419f2
    • Max Chou's avatar
      target/riscv: Add cfg properties for Zvks[c|g] extensions · 8f913d10
      Max Chou authored
      
      Vector crypto spec defines the ShangMi algorithm suite related
      extensions (Zvks, Zvksc, Zvksg) combined by several vector crypto
      extensions.
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231026151828.754279-9-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      8f913d10
    • Max Chou's avatar
      target/riscv: Expose Zvkn[c|g] extnesion properties · 23aaefb9
      Max Chou authored
      
      Expose the properties of NIST Algorithm Suite related extensions (Zvkn,
      Zvknc, Zvkng).
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231026151828.754279-8-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      23aaefb9
    • Max Chou's avatar
      target/riscv: Add cfg properties for Zvkn[c|g] extensions · 7cdc8ddb
      Max Chou authored
      
      Vector crypto spec defines the NIST algorithm suite related extensions
      (Zvkn, Zvknc, Zvkng) combined by several vector crypto extensions.
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231026151828.754279-7-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      7cdc8ddb
    • Max Chou's avatar
      target/riscv: Expose Zvkb extension property · f209cb0a
      Max Chou authored
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231026151828.754279-6-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      f209cb0a
    • Max Chou's avatar
      target/riscv: Replace Zvbb checking by Zvkb · 1db699f8
      Max Chou authored
      
      The Zvkb extension is a proper subset of the Zvbb extension and includes
      following instructions:
        * vandn.[vv,vx]
        * vbrev8.v
        * vrev8.v
        * vrol.[vv,vx]
        * vror.[vv,vx,vi]
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231026151828.754279-5-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      1db699f8
    • Max Chou's avatar
      target/riscv: Add cfg property for Zvkb extension · 389b2e70
      Max Chou authored
      
      After vector crypto spec v1.0.0-rc3 release, the Zvkb extension is
      defined as a proper subset of the Zvbb extension. And both the Zvkn and
      Zvks shorthand extensions replace the included Zvbb extension by Zvkb
      extnesion.
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231026151828.754279-4-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      389b2e70
    • Max Chou's avatar
      target/riscv: Expose Zvkt extension property · 1c32b630
      Max Chou authored
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231026151828.754279-3-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      1c32b630
    • Max Chou's avatar
      target/riscv: Add cfg property for Zvkt extension · 5ddbc83f
      Max Chou authored
      
      Vector crypto spec defines the Zvkt extension that included all of the
      instructions of Zvbb & Zvbc extensions and some vector instructions.
      
      Signed-off-by: default avatarMax Chou <max.chou@sifive.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Message-ID: <20231026151828.754279-2-max.chou@sifive.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      5ddbc83f
    • Weiwei Li's avatar
      MAINTAINERS: update mail address for Weiwei Li · c0ce1f2a
      Weiwei Li authored
      
      My Iscas mail account will be disabled soon, change to my personal
      gmail account.
      
      Signed-off-by: default avatarWeiwei Li <liwei1518@gmail.com>
      Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Reviewed-by: default avatarLIU Zhiwei <zhiwei_liu@linux.alibaba.com>
      Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-ID: <20231030081607.115118-2-liweiwei@iscas.ac.cn>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      c0ce1f2a
    • Heinrich Schuchardt's avatar
      target/riscv: correct csr_ops[CSR_MSECCFG] · 2f32dcab
      Heinrich Schuchardt authored
      
      The CSR register mseccfg is used by multiple extensions: Smepm and Zkr.
      
      Consider this when checking the existence of the register.
      
      Fixes: 77442380 ("target/riscv: rvk: add CSR support for Zkr")
      Signed-off-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
      Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-ID: <20231030102105.19501-1-heinrich.schuchardt@canonical.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      2f32dcab
    • Daniel Henrique Barboza's avatar
      target/riscv/kvm: add zicsr, zifencei, zba, zbs, svnapot · 672ec606
      Daniel Henrique Barboza authored
      
      These regs were added in Linux 6.6.
      
      Signed-off-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-ID: <20231031205150.208405-1-dbarboza@ventanamicro.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      672ec606
Loading