Skip to content
Snippets Groups Projects
  1. Nov 04, 2022
    • Peter Maydell's avatar
      hw/arm/boot: Set SME and SVE EL3 vector lengths when booting kernel · 2b39abb2
      Peter Maydell authored
      When we direct boot a kernel on a CPU which emulates EL3, we need
      to set up the EL3 system registers as the Linux kernel documentation
      specifies:
       https://www.kernel.org/doc/Documentation/arm64/booting.rst
      
      
      
      For SVE and SME this includes:
          - ZCR_EL3.LEN must be initialised to the same value for all CPUs the
            kernel is executed on.
          - SMCR_EL3.LEN must be initialised to the same value for all CPUs the
            kernel will execute on.
      
      Although we are technically compliant with this, the "same value" we
      currently use by default is the reset value of 0.  This will end up
      forcing the guest kernel's SVE and SME vector length to be only the
      smallest supported length.
      
      Initialize the vector length fields to their maximum possible value,
      which is 0xf. If the implementation doesn't actually support that
      vector length then the effective vector length will be constrained
      down to the maximum supported value at point of use.
      
      This allows the guest to use all the vector lengths the emulated CPU
      supports (by programming the _EL2 and _EL1 versions of these
      registers.)
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20221027140207.413084-2-peter.maydell@linaro.org
      2b39abb2
  2. Nov 03, 2022
    • Stefan Hajnoczi's avatar
      Merge tag 'linux-user-for-7.2-pull-request' of https://gitlab.com/laurent_vivier/qemu into staging · ece5f837
      Stefan Hajnoczi authored
      linux-user pull request 20221103
      
      Fix recvmsg
      Fix hppa exception handler
      Add close_range
      Add strace for timer_settime64
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmNjgI0SHGxhdXJlbnRA
      # dml2aWVyLmV1AAoJEPMMOL0/L7485noP/jx8c5ytN+K5JbTLIdGYAbTJLm82Pnl5
      # PP6mzaiII+gqBsmsTmmZhJ92xWjyX9kZmwCY7jD5XYXHQ2jFg3fU96ktYum7q8BU
      # XaPP4Cd6TfDE4q8H34PD/4byTGEkHP6o7EhAkIVAKsRQcQgZnsc3tvZetXxncltZ
      # UypPqAjvTy3s3uJFRmI4z9sYiAvjEflgk8doci/i5dOSgEBUmcCw/tFUx2GFrHiR
      # TdX8BRGaGEt+TPyKAo6sVBgTs1KiU4RzOqrPoxZO8aEClwPCRTLqNw/IONtHmx9f
      # EevuwDS7ZdoMdXi7YANDVy17JkmPBU3g8DFSWYGYObRpdmexmD66aW4kCeUYL0BC
      # y5aqxRWEi/7Kjvb6QlO3sJnAMfXaOQcCNn1++Tk1V8/O7f3k/xakya700fiMRIaQ
      # vyrW+g0TrCWEOgWl1Nyd0yDayX0wCM8CV/5SoO21QHjjzG+zmPxvroDpfVHcwbAl
      # V+wzVBj6AE5QBZKXUSE4b5DalcASF3pbUTorB5Xv/HDdsM1cRGZLBo7KECXqLKaa
      # L5VLgDdrZdSJz60f4P7Ldyhv0grb3C38JNqYg8fi8gWdj6dEc5M4coX84lA3JE7v
      # +Vf3Ys+lGC+DCSp2Qsh5FJvgsRn740ROToLJcXu3jxYPlquEsZpS1hpC+WOTRXOU
      # l2tnZIV9/SyH
      # =UZJY
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Thu 03 Nov 2022 04:49:17 EDT
      # 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 'linux-user-for-7.2-pull-request' of https://gitlab.com/laurent_vivier/qemu
      
      :
        linux-user: always translate cmsg when recvmsg
        linux-user: Add strace output for timer_settime64() syscall
        linux-user: Add close_range() syscall
        linux-user/hppa: Detect glibc ABORT_INSTRUCTION and EXCP_BREAK handler
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      ece5f837
    • Stefan Hajnoczi's avatar
      Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging · 7f5acfcb
      Stefan Hajnoczi authored
      * bug fixes
      * reduced memory footprint for IPI virtualization on Intel processors
      * asynchronous teardown support (Linux only)
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFIBAABCAAyFiEE8TM4V0tmI4mGbHaCv/vSX3jHroMFAmNiVykUHHBib256aW5p
      # QHJlZGhhdC5jb20ACgkQv/vSX3jHroN0Swf/YxjphCtFgYYSO14WP+7jAnfRZLhm
      # 0xWChWP8rco5I352OBFeFU64Av5XoLGNn6SZLl8lcg86lQ/G0D27jxu6wOcDDHgw
      # 0yTDO1gevj51UKsbxoC66OWSZwKTEo398/BHPDcI2W41yOFycSdtrPgspOrFRVvf
      # 7M3nNjuNPsQorZeuu8NGr3jakqbt99ZDXcyDEWbrEAcmy2JBRMbGgT0Kdnc6aZfW
      # CvL+1ljxzldNwGeNBbQW2QgODbfHx5cFZcy4Daze35l5Ra7K/FrgAzr6o/HXptya
      # 9fEs5LJQ1JWI6JtpaWwFy7fcIIOsJ0YW/hWWQZSDt9JdAJFE5/+vF+Kz5Q==
      # =CgrO
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Wed 02 Nov 2022 07:40:25 EDT
      # 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
      
      * tag 'for-upstream' of https://gitlab.com/bonzini/qemu
      
      :
        target/i386: Fix test for paging enabled
        util/log: Close per-thread log file on thread termination
        target/i386: Set maximum APIC ID to KVM prior to vCPU creation
        os-posix: asynchronous teardown for shutdown on Linux
        target/i386: Fix calculation of LOCK NEG eflags
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      7f5acfcb
    • Stefan Hajnoczi's avatar
      Merge tag 'nvme-fixes-pull-request' of git://git.infradead.org/qemu-nvme into staging · 5e821022
      Stefan Hajnoczi authored
      hw/nvme fixes
      
      Two small fixes.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQEzBAABCgAdFiEEUigzqnXi3OaiR2bATeGvMW1PDekFAmNiKUkACgkQTeGvMW1P
      # DenBuAf/fwznY98HVg8zYQ/chLGMCmjAa80buf867usnL5Iuhms1XCkxpETFfMAZ
      # HR5gg+52vHZg/FCGbQ3E8d/ZLwDZHboiEuZDPo9aYI4uTj3gs66j9S0y6DUVkn5I
      # 7Ad+BYW7/d4++8fZAdaUV67rmo89OvjgSqOs+O094nGAPIEgJnsL7HrOFniKnNqu
      # MMWvFlK1bAz/iPKPf2WWVeuAs1cMs+TPsjE+ZHhUEYaZAiB1myKVPIAVyOHx5yoT
      # 6VTsNMLvNEi5+4Ucg1TkIwb/dAXrYYEvreo8ri1yuHCVOqw4lU9FfPhmiz5h76Sc
      # sI0cMiNL/RW5pk6rnDLkPZyjTKw30A==
      # =s2fM
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Wed 02 Nov 2022 04:24:41 EDT
      # 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
      
      * tag 'nvme-fixes-pull-request' of git://git.infradead.org/qemu-nvme
      
      :
        hw/nvme: Abort copy command when format is one while pif
        hw/nvme: reenable cqe batching
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      5e821022
  3. Nov 02, 2022
  4. Nov 01, 2022
    • Stefan Hajnoczi's avatar
      Merge tag 'block-pull-request' of https://gitlab.com/stefanha/qemu into staging · a11f65ec
      Stefan Hajnoczi authored
      Pull request
      
      Note that we're still discussing "block/blkio: Make driver nvme-io_uring take a
      "path" instead of a "filename"". I have sent the pull request now so everything
      is ready for the soft freeze tomorrow if we decide to go ahead with the patch.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQEzBAABCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmNgGQkACgkQnKSrs4Gr
      # c8hLFgf/dnszoHO02hjoJCN2LPAxDalyYKzog+ZU8U5VdzJn2gione1jVlf3Xb0l
      # mhTgrioSbKLKXavGZTSwWUki/xRgCJMtG3m07EFmMsLX0QiSOIyzLr0DslQawYdZ
      # FlXyCCyAVTUILz7oUXBqORlfTKsGPHms6nlXQYhitTOsDbPyqbT9nNPKAlfGkqfj
      # Pwn+oWJmjLC0aARpcrB1bXCMbqQrtZGh4bBgfIXRUJmprWqk227bkFvXNCuXU16x
      # PC4oH552+6nyQyRxGpHc3o1W/8gqlxU9DTBb5arDUQaDvsDTKVkuGe2HdDI7knAT
      # /m57/BFVUnA35SYOxX+0piiEbawI6Q==
      # =UWL7
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 31 Oct 2022 14:50:49 EDT
      # gpg:                using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8
      # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [ultimate]
      # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>" [ultimate]
      # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8
      
      * tag 'block-pull-request' of https://gitlab.com/stefanha/qemu
      
      :
        block/blkio: Make driver nvme-io_uring take a "path" instead of a "filename"
        block/blkio: Tolerate device size changes
        block/blkio: Add virtio-blk-vfio-pci BlockDriver
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      a11f65ec
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-testing-for-7.2-011122-3' of https://github.com/stsquad/qemu into staging · 0d37413c
      Stefan Hajnoczi authored
      testing and plugin updates for 7.2:
      
        - cleanup win32/64 docker files
        - update test-mingw test
        - add flex/bison to debian-all-test
        - handle --enable-static/--disable-pie in config
        - extend timeouts on x86_64 avocado tests
        - add flex/bison to debian-hexagon-cross
        - use regular semihosting for nios2 check-tcg
        - fix obscure linker error to nios2 softmmu tests
        - various windows portability fixes for tests
        - clean-up of MAINTAINERS
        - use -machine none when appropriate in avocado
        - make raspi2_initrd test detect shutdown
        - disable sh4 rd2 tests on gitlab
        - re-enable threadcount/linux-test for sh4
        - clean-up s390x handling of "ex" instruction
        - better handle new CPUs in execlog plugin
        - pass CONFIG_DEBUG_TCG to plugin builds
        - try and avoid races in test-io-channel-command
        - speed up ssh key checking for tests/vm
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQEzBAABCgAdFiEEZoWumedRZ7yvyN81+9DbCVqeKkQFAmNhI/MACgkQ+9DbCVqe
      # KkSFXggAg0HIpBDcNz0V5Mh5p69F14pwbDSygKqGDFBebdOHeL7f+WCvQPUGEWxp
      # 814zjvRY3SC4Mo4mtzguRvNu0styaUpemvRw5FDYK48GpEjg2eVxTnAFD4nr7ud0
      # dhw3iaHP+RjA6s3EpPUqQ5nlZEgFJ+Tvkckk3wKSpksBYA4tJra6Uey5kpZ27x0T
      # KOzB2P6w+9B/B11n/aeSxvRPZdnXt2MyfS/3pwwfoFYioEyaEQ3Ie6ooachtdSL3
      # PEvnJVK0VVYbZQwBXJlycNLlK/D++s4AEwmnZ5GmvDFuXlkRO9YMy9Wa5TKJl7gz
      # 76Aw1KHsE03SyAPvH4bE7eGkIwhJOQ==
      # =6hXE
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 01 Nov 2022 09:49:39 EDT
      # gpg:                using RSA key 6685AE99E75167BCAFC8DF35FBD0DB095A9E2A44
      # gpg: Good signature from "Alex Bennée (Master Work Key) <alex.bennee@linaro.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: 6685 AE99 E751 67BC AFC8  DF35 FBD0 DB09 5A9E 2A44
      
      * tag 'pull-testing-for-7.2-011122-3' of https://github.com/stsquad/qemu
      
      : (31 commits)
        tests/vm: use -o IdentitiesOnly=yes for ssh
        tests/unit: cleanups for test-io-channel-command
        contrib/plugins: protect execlog's last_exec expansion
        contrib/plugins: enable debug on CONFIG_DEBUG_TCG
        tests/tcg: include CONFIG_PLUGIN in config-host.mak
        target/s390x: fake instruction loading when handling 'ex'
        target/s390x: don't probe next pc for EXecuted insns
        target/s390x: don't use ld_code2 to probe next pc
        tests/tcg: re-enable threadcount for sh4
        tests/tcg: re-enable linux-test for sh4
        tests/avocado: disable sh4 rd2 tests on Gitlab
        tests/avocado: raspi2_initrd: Wait for guest shutdown message before stopping
        tests/avocado: set -machine none for userfwd and vnc tests
        MAINTAINERS: fix-up for check-tcg Makefile changes
        MAINTAINERS: add features_to_c.sh to gdbstub files
        MAINTAINERS: add entries for the key build bits
        hw/usb: dev-mtp: Use g_mkdir()
        block/vvfat: Unify the mkdir() call
        tcg: Avoid using hardcoded /tmp
        semihosting/arm-compat-semi: Avoid using hardcoded /tmp
        ...
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      0d37413c
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-tcg-20221031-2' of https://gitlab.com/rth7680/qemu into staging · 18cd31ff
      Stefan Hajnoczi authored
      Remove sparc32plus support from tcg/sparc.
      target/i386: Use cpu_unwind_state_data for tpr access.
      target/i386: Expand eflags updates inline
      Complete cpu initialization before registration
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmNgQvIdHHJpY2hhcmQu
      # aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV9bxAf/X6904X+2I55LTMP7
      # jLCxMAlSgFiwaWW4sQLvfUS2qjjMNw7dtljF0HaYVJCawABI4tIY3nEYL8dhLiGU
      # WpMTmDIY/cBrQ0aMWfUTGRIFZOIpCLsZwiG6zW6w5KxfKUaakeZSgxqhzgFFcM2k
      # UDb9HYC6jwEDDZJYTRpcTIsnYHjaiu/ofKjbjWoslq9DIrThLr1UZgoOxzZ9w2Rh
      # xEDBNnD42Kzb0Lbc5B1cX4tla43g9KfHkfG6Ww3fJVYZcFxFhAp40y1chtq5qaia
      # 64cPOfSdjoHWaZKdXop3hDYvqRTour56S+e1n1VxHVhbsVRh0KKYBvzAZtiN4FEu
      # w8E8bA==
      # =fxqA
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 31 Oct 2022 17:49:38 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-20221031-2' of https://gitlab.com/rth7680/qemu
      
      :
        tests/tcg/multiarch: Add munmap-pthread.c
        accel/tcg: Complete cpu initialization before registration
        target/i386: Expand eflags updates inline
        accel/tcg: Remove reset_icount argument from cpu_restore_state_from_tb
        accel/tcg: Remove will_exit argument from cpu_restore_state
        target/openrisc: Use cpu_unwind_state_data for mfspr
        target/openrisc: Always exit after mtspr npc
        target/i386: Use cpu_unwind_state_data for tpr access
        accel/tcg: Introduce cpu_unwind_state_data
        tcg/tci: fix logic error when registering helpers via FFI
        tcg/sparc64: Remove sparc32plus constraints
        tcg/sparc64: Rename from tcg/sparc
        tcg/sparc: Remove support for sparc32plus
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      18cd31ff
    • Stefan Hajnoczi's avatar
      Merge tag 'qemu-macppc-20221031' of https://github.com/mcayland/qemu into staging · 7ef1d487
      Stefan Hajnoczi authored
      qemu-macppc updates for 7.2
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFSBAABCgA8FiEEzGIauY6CIA2RXMnEW8LFb64PMh8FAmNgIqAeHG1hcmsuY2F2
      # ZS1heWxhbmRAaWxhbmRlLmNvLnVrAAoJEFvCxW+uDzIfWU0H/iG6k04L9jrKJ4ao
      # wA/CQlvRxG+gRSj1I5oeuLJEqoMSzU5d5flQNPpfv068wngIS/0gHM7UNRGDAOIj
      # 8Gu6lf+eB0lwOlmF0Gq2o9/RV6ZWEZtziX3s7G6CYQK0tkQsKZBD36P3Mssr3pWt
      # 2XX44eV1qULreFEHWT6I97zV9gFTEuHXJ3j8YDuz7fpqW1B38WUq1TOftiMi9JP4
      # PEVhfTOwi6MhsrRpt2uouGPLhmANLucvaXgKgMFRHyy0xOlzYKxjKXbq6nbAFSRd
      # 8xEbnLaMWHUKtsmsxtjPJnCV9obO7YzPLXJBLbg2CxhEc/ktDC7YjKL5EXLT2mHC
      # s7kVfyM=
      # =rc9K
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 31 Oct 2022 15:31:44 EDT
      # gpg:                using RSA key CC621AB98E82200D915CC9C45BC2C56FAE0F321F
      # gpg:                issuer "mark.cave-ayland@ilande.co.uk"
      # gpg: Good signature from "Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>" [full]
      # Primary key fingerprint: CC62 1AB9 8E82 200D 915C  C9C4 5BC2 C56F AE0F 321F
      
      * tag 'qemu-macppc-20221031' of https://github.com/mcayland/qemu
      
      :
        mac_newworld: Turn CORE99_VIA_CONFIG defines into an enum
        mac_{old|new}world: Code style fix adding missing braces to if-s
        mac_nvram: Use NVRAM_SIZE constant
        hw/ppc/mac.h: Rename to include/hw/nvram/mac_nvram.h
        hw/ppc/mac.h: Move PROM and KERNEL defines to board code
        hw/ppc/mac.h: Move grackle-pcihost type declaration out to a header
        hw/ppc/mac.h: Move macio specific parts out from shared header
        hw/ppc/mac.h: Move newworld specific parts out from shared header
        mac_{old|new}world: Reduce number of QOM casts
        mac_newworld: Clean up creation of Uninorth devices
        mac_{old|new}world: Avoid else branch by setting default value
        mac_{old|new}world: Set tbfreq at declaration
        mac_oldworld: Drop some more variables
        mac_newworld: Drop some variables
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      7ef1d487
  5. Oct 31, 2022
Loading