Skip to content
Snippets Groups Projects
  1. Jul 18, 2023
  2. Jul 17, 2023
  3. Jul 15, 2023
    • Richard Henderson's avatar
      Merge tag 'pull-tpm-2023-07-14-1' of https://github.com/stefanberger/qemu-tpm into staging · ed8ad972
      Richard Henderson authored
      Merge tpm 2023/07/14 v1
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQEzBAABCAAdFiEEuBi5yt+QicLVzsZrda1lgCoLQhEFAmSxasMACgkQda1lgCoL
      # QhHaJwgAzOzXV9xRId1wjNLHI9HF4dkblfr12PgKsECKz7uPvcbpZOsDvu629Z8f
      # a2X502Mep+6lBqq5RNUF59a5nE3laoYItaF+P+TFWz74+na7WKyFg107YyoHvCfJ
      # GdjpCNyOGaXzDycAcwjqvkX5q532YBD9npedD9NzZ2UgUYWVXOYAZFhek6H9kwHN
      # xlewj80pHLw3X8MM/Z1jR5hDFQa4ocCvF8F2Fnr4u0L5b+noga1WzspKTY8mcbVJ
      # 3ncOTuvoWReBPweZhvSzsFbYAFb3OEeaimUHQrKVJj1L7pJtSJZeOuS+umbhvpFR
      # 9baczGwrqYqpPtiDT48lTjArdJ8Cqw==
      # =6Hmf
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Fri 14 Jul 2023 04:33:23 PM BST
      # gpg:                using RSA key B818B9CADF9089C2D5CEC66B75AD65802A0B4211
      # gpg: Good signature from "Stefan Berger <stefanb@linux.vnet.ibm.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: B818 B9CA DF90 89C2 D5CE  C66B 75AD 6580 2A0B 4211
      
      * tag 'pull-tpm-2023-07-14-1' of https://github.com/stefanberger/qemu-tpm
      
      :
        hw/tpm: TIS on sysbus: Remove unsupport ppi command line option
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      ed8ad972
    • Richard Henderson's avatar
      Merge tag 'pull-tcg-20230715' of https://gitlab.com/rth7680/qemu into staging · d7be40e1
      Richard Henderson authored
      tcg: Use HAVE_CMPXCHG128 instead of CONFIG_CMPXCHG128
      accel/tcg: Introduce page_check_range_empty
      accel/tcg: Introduce page_find_range_empty
      accel/tcg: Accept more page flags in page_check_range
      accel/tcg: Return bool from page_check_range
      accel/tcg: Always lock pages before translation
      linux-user: Use abi_* types for target structures in syscall_defs.h
      linux-user: Fix abi_llong alignment for microblaze and nios2
      linux-user: Fix do_shmat type errors
      linux-user: Implement execve without execveat
      linux-user: Make sure initial brk is aligned
      linux-user: Use a mask with strace flags
      linux-user: Implement MAP_FIXED_NOREPLACE
      linux-user: Widen target_mmap offset argument to off_t
      linux-user: Use page_find_range_empty for mmap_find_vma_reserved
      linux-user: Use 'last' instead of 'end' in target_mmap and subroutines
      linux-user: Remove can_passthrough_madvise
      linux-user: Simplify target_madvise
      linux-user: Drop uint and ulong types
      linux-user/arm: Do not allocate a commpage at all for M-profile CPUs
      bsd-user: Use page_check_range_empty for MAP_EXCL
      bsd-user: Use page_find_range_empty for mmap_find_vma_reserved
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmSypEYdHHJpY2hhcmQu
      # aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV9VzQf/RMRK4SQDJiJEbQ6K
      # 5U1i955Rl4MMLT8PrkbT/UDA9soyIlSVjUenW8ThJJg6SLbSvkXZsWn165PFu+yW
      # nYkeCYxkJtAjWmmFlZ44J+VLEZZ6LkWrIvPZHvKohelpi6uT/fuQaAZjKuH2prI/
      # 7bdP5YdLUMpCztERHYfxmroEX4wJR6knsRpt5rYchADxEfkWk82PanneCw7grQ6V
      # VNg1pRGplp0jMkpOOBvMD1ENkmoipklMe9P1gQdCHobg2/kqpozhT1oQp/gHNkP5
      # 66Cjzv8o0nnPjJetm74pnP06iNhuMjDesD7f+Vq/DALgMobwjvhDW5GD+Ccto85B
      # hqvwHA==
      # =vm0t
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Sat 15 Jul 2023 02:51:02 PM BST
      # gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
      # gpg:                issuer "richard.henderson@linaro.org"
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [ultimate]
      
      * tag 'pull-tcg-20230715' of https://gitlab.com/rth7680/qemu
      
      : (47 commits)
        tcg: Use HAVE_CMPXCHG128 instead of CONFIG_CMPXCHG128
        accel/tcg: Always lock pages before translation
        linux-user/arm: Do not allocate a commpage at all for M-profile CPUs
        linux-user: Drop uint and ulong
        linux-user: Simplify target_madvise
        linux-user: Remove can_passthrough_madvise
        accel/tcg: Return bool from page_check_range
        accel/tcg: Accept more page flags in page_check_range
        linux-user: Simplify target_munmap
        linux-user: Rename mmap_reserve to mmap_reserve_or_unmap
        linux-user: Rewrite mmap_reserve
        linux-user: Use 'last' instead of 'end' in target_mmap
        linux-user: Use page_find_range_empty for mmap_find_vma_reserved
        bsd-user: Use page_find_range_empty for mmap_find_vma_reserved
        accel/tcg: Introduce page_find_range_empty
        linux-user: Rewrite mmap_frag
        linux-user: Rewrite target_mprotect
        linux-user: Widen target_mmap offset argument to off_t
        linux-user: Split out target_to_host_prot
        linux-user: Implement MAP_FIXED_NOREPLACE
        ...
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      d7be40e1
    • Richard Henderson's avatar
      tcg: Use HAVE_CMPXCHG128 instead of CONFIG_CMPXCHG128 · 76f9d6ad
      Richard Henderson authored
      
      We adjust CONFIG_ATOMIC128 and CONFIG_CMPXCHG128 with
      CONFIG_ATOMIC128_OPT in atomic128.h.  It is difficult
      to tell when those changes have been applied with the
      ifdef we must use with CONFIG_CMPXCHG128.  So instead
      use HAVE_CMPXCHG128, which triggers -Werror-undef when
      the proper header has not been included.
      
      Improves tcg_gen_atomic_cmpxchg_i128 for s390x host, which
      requires CONFIG_ATOMIC128_OPT.  Without this we fall back
      to EXCP_ATOMIC to single-step 128-bit atomics, which is
      slow enough to cause some tests to time out.
      
      Reported-by: default avatarThomas Huth <thuth@redhat.com>
      Tested-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      76f9d6ad
    • Richard Henderson's avatar
      accel/tcg: Always lock pages before translation · deba7870
      Richard Henderson authored
      
      We had done this for user-mode by invoking page_protect
      within the translator loop.  Extend this to handle system
      mode as well.  Move page locking out of tb_link_page.
      
      Reported-by: default avatarLiren Wei <lrwei@bupt.edu.cn>
      Reported-by: default avatarRichard W.M. Jones <rjones@redhat.com>
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Tested-by: default avatarRichard W.M. Jones <rjones@redhat.com>
      deba7870
    • Philippe Mathieu-Daudé's avatar
      linux-user/arm: Do not allocate a commpage at all for M-profile CPUs · d713cf4d
      Philippe Mathieu-Daudé authored
      Since commit fbd3c4cf ("linux-user/arm: Mark the commpage
      executable") executing bare-metal (linked with rdimon.specs)
      cortex-M code fails as:
      
        $ qemu-arm -cpu cortex-m3 ~/hello.exe.m3
        qemu-arm: ../../accel/tcg/user-exec.c:492: page_set_flags: Assertion `last <= GUEST_ADDR_MAX' failed.
        Aborted (core dumped)
      
      Commit 4f5c67f8 ("linux-user/arm: Take more care allocating
      commpage") already took care of not allocating a commpage for
      M-profile CPUs, however it had to be reverted as commit 6cda41da.
      
      Re-introduce the M-profile fix from commit 4f5c67f8.
      
      Fixes: fbd3c4cf ("linux-user/arm: Mark the commpage executable")
      Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1755
      
      
      Reported-by: default avatarChristophe Lyon <christophe.lyon@linaro.org>
      Suggested-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Reviewed-by: default avatarAnton Johansson <anjo@rev.ng>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20230711153408.68389-1-philmd@linaro.org>
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      d713cf4d
    • Juan Quintela's avatar
      linux-user: Drop uint and ulong · ac42f443
      Juan Quintela authored
      
      These are types not used anymore anywhere else.
      
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Message-id: <20230511085056.13809-1-quintela@redhat.com>
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      ac42f443
    • Richard Henderson's avatar
      linux-user: Simplify target_madvise · e230ec09
      Richard Henderson authored
      
      The trivial length 0 check can be moved up, simplifying some
      of the other cases.  The end < start test is handled by
      guest_range_valid_untagged.
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20230707204054.8792-27-richard.henderson@linaro.org>
      e230ec09
Loading