Re: [PATCH v3 0/6] target/arm: assorted mte fixes

2024-02-08 Thread Peter Maydell
On Wed, 7 Feb 2024 at 02:52, Richard Henderson
 wrote:
>
> Changes for v3:
>   - As if /sys/devices/system/cpu/cpu/mte_tcf_preferred is "sync".
>   - Fix do_st_zpa as well as do_ld_zpa.  Oops.
>
> Because of the above, I dropped Gustavo's t-b.
>
>
> r~
>
>
> Richard Henderson (6):
>   linux-user/aarch64: Choose SYNC as the preferred MTE mode
>   target/arm: Fix nregs computation in do_{ld,st}_zpa
>   target/arm: Adjust and validate mtedesc sizem1
>   target/arm: Split out make_svemte_desc
>   target/arm: Handle mte in do_ldrq, do_ldro
>   target/arm: Fix SVE/SME gross MTE suppression checks



Applied to target-arm.next, thanks.

-- PMM



Re: [PATCH v3 0/6] target/arm: assorted mte fixes

2024-02-07 Thread Gustavo Romero

Hi Richard,

On 2/6/24 11:52 PM, Richard Henderson wrote:

Changes for v3:
   - As if /sys/devices/system/cpu/cpu/mte_tcf_preferred is "sync".
   - Fix do_st_zpa as well as do_ld_zpa.  Oops.

Because of the above, I dropped Gustavo's t-b.


r~


Richard Henderson (6):
   linux-user/aarch64: Choose SYNC as the preferred MTE mode
   target/arm: Fix nregs computation in do_{ld,st}_zpa
   target/arm: Adjust and validate mtedesc sizem1
   target/arm: Split out make_svemte_desc
   target/arm: Handle mte in do_ldrq, do_ldro
   target/arm: Fix SVE/SME gross MTE suppression checks

  linux-user/aarch64/target_prctl.h | 29 ++-
  target/arm/internals.h|  2 +-
  target/arm/tcg/translate-a64.h|  2 +
  target/arm/tcg/sme_helper.c   |  8 +--
  target/arm/tcg/sve_helper.c   | 12 ++---
  target/arm/tcg/translate-sme.c| 15 ++
  target/arm/tcg/translate-sve.c| 83 ++-
  7 files changed, 83 insertions(+), 68 deletions(-)


Since this patchset fixes the "prctl() failed: Invalid argument"
on QEMU user-mode when both flags (ASYNC | SYNC) are passed
to prctl(PR_SET_TAGGED_ADDR_CTRL, ...), I tested it again --
expecting no different result -- so:

Tested-by: Gustavo Romero 

If that t-b tag doesn't make sense, feel free to drop it :)

Thanks for fixing it!


Cheers,
Gustavo



[PATCH v3 0/6] target/arm: assorted mte fixes

2024-02-06 Thread Richard Henderson
Changes for v3:
  - As if /sys/devices/system/cpu/cpu/mte_tcf_preferred is "sync".
  - Fix do_st_zpa as well as do_ld_zpa.  Oops.

Because of the above, I dropped Gustavo's t-b.


r~


Richard Henderson (6):
  linux-user/aarch64: Choose SYNC as the preferred MTE mode
  target/arm: Fix nregs computation in do_{ld,st}_zpa
  target/arm: Adjust and validate mtedesc sizem1
  target/arm: Split out make_svemte_desc
  target/arm: Handle mte in do_ldrq, do_ldro
  target/arm: Fix SVE/SME gross MTE suppression checks

 linux-user/aarch64/target_prctl.h | 29 ++-
 target/arm/internals.h|  2 +-
 target/arm/tcg/translate-a64.h|  2 +
 target/arm/tcg/sme_helper.c   |  8 +--
 target/arm/tcg/sve_helper.c   | 12 ++---
 target/arm/tcg/translate-sme.c| 15 ++
 target/arm/tcg/translate-sve.c| 83 ++-
 7 files changed, 83 insertions(+), 68 deletions(-)

-- 
2.34.1