Skip to content
Snippets Groups Projects
  1. Oct 06, 2022
  2. Oct 05, 2022
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-hex-20221003' of https://github.com/quic/qemu into staging · 1dcdc92c
      Stefan Hajnoczi authored
      Make store handling faster and more robust
      Bug fix in gen_tcg_funcs.py
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQEzBAABCgAdFiEENjXHiM5iuR/UxZq0ewJE+xLeRCIFAmM7JS4ACgkQewJE+xLe
      # RCJXxQf9ESfI6LVoB1VBsMs69WOHqhy1HUEVzM4Ku+CgDCNaFRRz7xFoy/sv4FOX
      # D7h5aYVuCLrX/KfttV6V+1GXX/XIyjMN81uZZ8/eiCvjt7D/9fkrUxp9E1Gh6KlV
      # Dci21OYjh4aStd4tXin0vPHN5wG+IuuYuSzj0Xvu8SzRjFYKsFkjfxPrVsm1zWvN
      # G1FfiUJ6AveRf9SJVuMTmLHY7jo9hg0/tpm7YpnxlIgzDVZbZDa1yDwaLEg/m6AT
      # GFHli/nOEsL1c6mbYmvVnGoSupjEj0+MfNIeOUrn8D5Gd66OgvU+FVVFBJQ4ZKi6
      # ZuckxBjBE3d5XKyxCVryRA3at+WLYA==
      # =ron6
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 03 Oct 2022 14:08:46 EDT
      # gpg:                using RSA key 3635C788CE62B91FD4C59AB47B0244FB12DE4422
      # gpg: Good signature from "Taylor Simpson (Rock on) <tsimpson@quicinc.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: 3635 C788 CE62 B91F D4C5  9AB4 7B02 44FB 12DE 4422
      
      * tag 'pull-hex-20221003' of https://github.com/quic/qemu
      
      :
        Hexagon (gen_tcg_funcs.py): avoid duplicated tcg code on A_CVI_NEW
        Hexagon (target/hexagon) move store size tracking to translation
        Hexagon (target/hexagon) Change decision to set pkt_has_store_s[01]
        Hexagon (target/hexagon) add instruction attributes from archlib
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      1dcdc92c
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-tcg-20221004' of https://gitlab.com/rth7680/qemu into staging · 4a9c0467
      Stefan Hajnoczi authored
      Cache CPUClass for use in hot code paths.
      Add CPUTLBEntryFull, probe_access_full, tlb_set_page_full.
      Add generic support for TARGET_TB_PCREL.
      tcg/ppc: Optimize 26-bit jumps using STQ for POWER 2.07
      target/sh4: Fix TB_FLAG_UNALIGN
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmM8jXEdHHJpY2hhcmQu
      # aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV/oEggArAHK8FtydfQ4ZwnF
      # SjXfpdP50OC0SZn3uBN93FZOrxz9UYG9t1oDHs39J/+b/u2nwJYch//EH2k+NtOW
      # hc3iIgS9bWgs/UWZESkViKQccw7gpYlc21Br38WWwFNEFyecX0p+e9pJgld5rSv1
      # mRGvCs5J2svH2tcXl/Sb/JWgcumOJoG7qy2aLyJGolR6UOfwcfFMzQXzq8qjpRKH
      # Jh84qusE/rLbzBsdN6snJY4+dyvUo03lT5IJ4d+FQg2tUip+Qqt7pnMbsqq6qF6H
      # R6fWU1JTbsh7GxXJwQJ83jLBnUsi8cy6FKrZ3jyiBq76+DIpR0PqoEe+PN/weInU
      # TN0z4g==
      # =RfXJ
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 04 Oct 2022 15:45:53 EDT
      # 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-20221004' of https://gitlab.com/rth7680/qemu
      
      :
        target/sh4: Fix TB_FLAG_UNALIGN
        tcg/ppc: Optimize 26-bit jumps
        accel/tcg: Introduce TARGET_TB_PCREL
        accel/tcg: Introduce tb_pc and log_pc
        hw/core: Add CPUClass.get_pc
        include/hw/core: Create struct CPUJumpCache
        accel/tcg: Inline tb_flush_jmp_cache
        accel/tcg: Do not align tb->page_addr[0]
        accel/tcg: Use DisasContextBase in plugin_gen_tb_start
        accel/tcg: Use bool for page_find_alloc
        accel/tcg: Remove PageDesc code_bitmap
        include/exec: Introduce TARGET_PAGE_ENTRY_EXTRA
        accel/tcg: Introduce tlb_set_page_full
        accel/tcg: Introduce probe_access_full
        accel/tcg: Suppress auto-invalidate in probe_access_internal
        accel/tcg: Drop addr member from SavedIOTLB
        accel/tcg: Rename CPUIOTLBEntry to CPUTLBEntryFull
        cputlb: used cached CPUClass in our hot-paths
        hw/core/cpu-sysemu: used cached class in cpu_asidx_from_attrs
        cpu: cache CPUClass in CPUState for hot code paths
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      4a9c0467
  3. Oct 04, 2022
  4. Oct 03, 2022
    • Stefan Berger's avatar
      docs: Update TPM documentation for usage of a TPM 2 · 4a4a74bf
      Stefan Berger authored
      
      Update the TPM documentation for usage of a TPM 2 rather than a TPM 1.2.
      Adjust the command lines and expected outputs inside the VM accordingly.
      Update the command line to start a TPM 2 with swtpm.
      
      Signed-off-by: default avatarStefan Berger <stefanb@linux.ibm.com>
      Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20220927122146.2787854-1-stefanb@linux.ibm.com>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      4a4a74bf
    • Markus Armbruster's avatar
      Use g_new() & friends where that makes obvious sense · c5e8d518
      Markus Armbruster authored
      
      g_new(T, n) is neater than g_malloc(sizeof(T) * n).  It's also safer,
      for two reasons.  One, it catches multiplication overflowing size_t.
      Two, it returns T * rather than void *, which lets the compiler catch
      more type errors.
      
      This commit only touches allocations with size arguments of the form
      sizeof(T).
      
      Patch created mechanically with:
      
          $ spatch --in-place --sp-file scripts/coccinelle/use-g_new-etc.cocci \
      	     --macro-file scripts/cocci-macro-file.h FILES...
      
      The previous iteration was commit a95942b50c.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Message-Id: <20220923084254.4173111-1-armbru@redhat.com>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      c5e8d518
    • Markus Armbruster's avatar
      Drop superfluous conditionals around g_free() · 76eb88b1
      Markus Armbruster authored
      
      There is no need to guard g_free(P) with if (P): g_free(NULL) is safe.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20220923090428.93529-1-armbru@redhat.com>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      76eb88b1
    • Philippe Mathieu-Daudé's avatar
      block/qcow2-bitmap: Add missing cast to silent GCC error · 90dc46d3
      Philippe Mathieu-Daudé authored
      
      Commit d1258dd0 ("qcow2: autoloading dirty bitmaps") added the
      set_readonly_helper() GFunc handler, correctly casting the gpointer
      user_data in both the g_slist_foreach() caller and the handler.
      Few commits later (commit 1b6b0562), the handler is reused in
      qcow2_reopen_bitmaps_rw() but missing the gpointer cast, resulting
      in the following error when using Homebrew GCC 12.2.0:
      
        [2/658] Compiling C object libblock.fa.p/block_qcow2-bitmap.c.o
        ../../block/qcow2-bitmap.c: In function 'qcow2_reopen_bitmaps_rw':
        ../../block/qcow2-bitmap.c:1211:60: error: incompatible type for argument 3 of 'g_slist_foreach'
         1211 |     g_slist_foreach(ro_dirty_bitmaps, set_readonly_helper, false);
              |                                                            ^~~~~
              |                                                            |
              |                                                            _Bool
        In file included from /opt/homebrew/Cellar/glib/2.72.3_1/include/glib-2.0/glib/gmain.h:26,
                         from /opt/homebrew/Cellar/glib/2.72.3_1/include/glib-2.0/glib/giochannel.h:33,
                         from /opt/homebrew/Cellar/glib/2.72.3_1/include/glib-2.0/glib.h:54,
                         from /Users/philmd/source/qemu/include/glib-compat.h:32,
                         from /Users/philmd/source/qemu/include/qemu/osdep.h:144,
                         from ../../block/qcow2-bitmap.c:28:
        /opt/homebrew/Cellar/glib/2.72.3_1/include/glib-2.0/glib/gslist.h:127:61: note: expected 'gpointer' {aka 'void *'} but argument is of type '_Bool'
          127 |                                           gpointer          user_data);
              |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~
        At top level:
        FAILED: libblock.fa.p/block_qcow2-bitmap.c.o
      
      Fix by adding the missing gpointer cast.
      
      Fixes: 1b6b0562 ("qcow2: support .bdrv_reopen_bitmaps_rw")
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
      Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
      Message-Id: <20220919182755.51967-1-f4bug@amsat.org>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      90dc46d3
    • Stefan Hajnoczi's avatar
      Merge tag 'for-upstream' of git://repo.or.cz/qemu/kevin into staging · efbf38d7
      Stefan Hajnoczi authored
      Block layer patches
      
      - Fix missing block_acct_setup() with -blockdev
      - Keep auto_backing_file post-migration
      - file-posix: Fixed O_DIRECT memory alignment
      - ide: Fix state after EXECUTE DEVICE DIAGNOSTIC and implement
        INITIALIZE DEVICE PARAMETERS
      - qemu-img: Wean documentation and help output off '?' for help
      - qcow2: fix memory leak and compiler warning
      - Code cleanups
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJFBAABCAAvFiEE3D3rFZqa+V09dFb+fwmycsiPL9YFAmM3Hm4RHGt3b2xmQHJl
      # ZGhhdC5jb20ACgkQfwmycsiPL9ZhqA//WGN9tlx3Pf1D6SG3PtIG6/2DOJ6/gVNw
      # R17BwoGTw36Nmt9xDzrHih753dcguLS19Kd6EySTg6j8mPogmFszquORMgGmcYcW
      # 0KtneRR7Y9XsamIGgentek1zsWajsP5muvZQF+hFJyZ24MZtWB+5Ucw2VuUTWnRl
      # YaKP/tGMP5sC8nK3Npste/o7yh9Wgv4cv/mdKuyKoxjZhELeTTpHoTC2IZK9bV5I
      # Bh19zjPRUPodm37nzONruUVzn53xKK3Qn26ZT5Hgx39HOdccPEu9N8wawQyqLr/x
      # 2whcn8kFfpFBLLxVbMYjwcWNo41SCn1itRcgV38PilBvG2UInUFK2QCmVgYxWluB
      # 9I5sRasfD3/BPPmw3n+j2TRJ+uvrLkkwXqIhAg+mAeiS0MccWUnLhJLW2S1Yai5L
      # nkjkLmuV7KCLQTY39WvKBq0TPgj3QR0WJtEYHuUDtduvzKxAWd47Ff1tEPvFm5Ys
      # RpmLSUQdPZiOkiwnV1qVg6a3gbIjUcT0Pai/Knc3iYrwCWLdNSCGoPkVemOg5wvN
      # GxsQcKnfayQqIdZU6lBQehUjPamm3ffAEELeqLQXCbZe9lsbhNBXLJjVnA3cOu3f
      # 1PX6w+4MNeTg5ZekUJGS1fnYlq9CDOWGSv37+csB8dBhi6vQTc6YjABWU1IrB0S5
      # 1ihOYtc8fOo=
      # =IIJz
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Fri 30 Sep 2022 12:50:54 EDT
      # 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
      
      * tag 'for-upstream' of git://repo.or.cz/qemu/kevin
      
      :
        hw/ide/core.c: Implement ATA INITIALIZE_DEVICE_PARAMETERS command
        tests/qtest/ide-test: Verify that DIAGNOSTIC clears DEV to zero
        hw/ide/core: Clear LBA and drive bits for EXECUTE DEVICE DIAGNOSTIC
        tests/qtest/ide-test.c: Create disk image for use as a secondary
        piix_ide_reset: Use pci_set_* functions instead of direct access
        block: use the request length for iov alignment
        block: move bdrv_qiov_is_aligned to file-posix
        iotests/backing-file-invalidation: Add new test
        block/qed: Keep auto_backing_file if possible
        block/qcow2: Keep auto_backing_file if possible
        gluster: stop using .bdrv_needs_filename
        block: make serializing requests functions 'void'
        block: use bdrv_is_sg() helper instead of raw bs->sg reading
        block: add missed block_acct_setup with new block device init procedure
        block: pass OnOffAuto instead of bool to block_acct_setup()
        qemu-img: Wean documentation and help output off '?' for help
        block/qcow2-bitmap: Add missing cast to silent GCC error
        qcow2: fix memory leak in qcow2_read_extensions
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      efbf38d7
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-target-arm-20220930' of... · 81f12b8c
      Stefan Hajnoczi authored
      Merge tag 'pull-target-arm-20220930' of https://git.linaro.org/people/pmaydell/qemu-arm into staging
      
      target-arm queue:
       * Fix breakage of icount mode when guest touches MDCR_EL3, MDCR_EL2,
         PMCNTENSET_EL0 or PMCNTENCLR_EL0
       * Make writes to MDCR_EL3 use PMU start/finish calls
       * Let AArch32 write to SDCR.SCCD
       * Rearrange cpu64.c so all the CPU initfns are together
       * hw/arm/xlnx-zynqmp: Connect ZynqMP's USB controllers
       * hw/arm/virt: fix some minor issues with generated device tree
       * Fix regression where EL3 could not write to SP_EL1 if there is no EL2
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAmM28EYZHHBldGVyLm1h
      # eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3mw9D/44e72KHZdfr3F/Cmd0Jku2
      # g5NQ4ooKV90rY4Y4+/VR9Z2k7a72lWFgFl7/54AKXSZsZSmNomeh2WxWJAs1lA2W
      # 4rmGPlLwxZYMQumYcMOArYxJQgRK5exVtE6ECKM/JERjhKSbnL1lyLWGUyLtFJfq
      # SjxoTWEigPHu+0fX/nk04rFzrA6Bo1qKQqZZTuN9zcT6JXyQMjZNF89Fxy9OlV4s
      # dlOXsZILV8oREnGdDFPYLgwSTMn+1rrD8xfjK/DTQrlUVX/9zhlIeKg5O4JadxCy
      # 8ThIFCyODUanlRvyjHiwvcvStHn8wwyCp4uJrxmZGyyp4t4u3etG0hpsZaPtiN9O
      # NKtad4Aoc6lSmIDhYYZA1LIIdSIeyUPD/LyWTd+qKK7A7mxH6ORr0uyjhb01jWs3
      # ceyne1i0n66oRLbHxPyjQEkLqwLl2CsqWr41BNM5RVoYjCU8HYSvEwlh7t+EZCL5
      # IRkfAWJkA9bdXL30ZmYSzJ7hfvVkWhDsHD+eOzAcsxoApgzI5Mfi7gCIZ+LNY20P
      # W0akGbA6l0InsmIcBpyXEztPOi6tOD/J55qeOCrzHjgfhoJWCoa/mS8bVqN0mKIA
      # yJ7QbiK/JY6+G1v2oM8aARLn8/C7oLnMYiKntXNBMj67Ry5GwjDt+A37MUHgQbZb
      # yUzUjr3O2N1qJRKi+Dd7eA==
      # =edYy
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Fri 30 Sep 2022 09:33:58 EDT
      # 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-20220930' of https://git.linaro.org/people/pmaydell/qemu-arm
      
      :
        target/arm: mark SP_EL1 with ARM_CP_EL3_NO_EL2_KEEP
        hw/arm/virt: Fix devicetree warning about the SMMU node
        hw/arm/virt: Use "msi-map" devicetree property for PCI
        hw/arm/virt: Fix devicetree warning about the GIC node
        hw/arm/virt: Fix devicetree warning about the root node
        hw/arm/xlnx-zynqmp: Connect ZynqMP's USB controllers
        target/arm: Rearrange cpu64.c so all the CPU initfns are together
        target/arm: Update SDCR_VALID_MASK to include SCCD
        target/arm: Make writes to MDCR_EL3 use PMU start/finish calls
        target/arm: Mark registers which call pmu_op_start() as ARM_CP_IO
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      81f12b8c
Loading