[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 13/21] linux-user/aarch64: Implement PR_MTE_TCF and PR_MTE
From: |
Peter Maydell |
Subject: |
Re: [PATCH v3 13/21] linux-user/aarch64: Implement PR_MTE_TCF and PR_MTE_TAG |
Date: |
Fri, 22 Jan 2021 11:48:45 +0000 |
On Fri, 15 Jan 2021 at 22:47, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> These prctl fields are required for the function of MTE.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> linux-user/aarch64/target_syscall.h | 9 ++++++
> linux-user/syscall.c | 44 +++++++++++++++++++++++++++++
> 2 files changed, 53 insertions(+)
>
> diff --git a/linux-user/aarch64/target_syscall.h
> b/linux-user/aarch64/target_syscall.h
> index 820601dfcc..76f6c3391d 100644
> --- a/linux-user/aarch64/target_syscall.h
> +++ b/linux-user/aarch64/target_syscall.h
> @@ -33,5 +33,14 @@ struct target_pt_regs {
> #define TARGET_PR_SET_TAGGED_ADDR_CTRL 55
> #define TARGET_PR_GET_TAGGED_ADDR_CTRL 56
> # define TARGET_PR_TAGGED_ADDR_ENABLE (1UL << 0)
> +/* MTE tag check fault modes */
> +# define TARGET_PR_MTE_TCF_SHIFT 1
> +# define TARGET_PR_MTE_TCF_NONE (0UL << TARGET_PR_MTE_TCF_SHIFT)
> +# define TARGET_PR_MTE_TCF_SYNC (1UL << TARGET_PR_MTE_TCF_SHIFT)
> +# define TARGET_PR_MTE_TCF_ASYNC (2UL << TARGET_PR_MTE_TCF_SHIFT)
> +# define TARGET_PR_MTE_TCF_MASK (3UL << TARGET_PR_MTE_TCF_SHIFT)
> +/* MTE tag inclusion mask */
> +# define TARGET_PR_MTE_TAG_SHIFT 3
> +# define TARGET_PR_MTE_TAG_MASK (0xffffUL << TARGET_PR_MTE_TAG_SHIFT)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- Re: [PATCH v3 12/21] linux-user/aarch64: Implement PR_TAGGED_ADDR_ENABLE, (continued)
- [PATCH v3 15/21] target/arm: Split out syndrome.h from internals.h, Richard Henderson, 2021/01/15
- [PATCH v3 17/21] linux-user/aarch64: Signal SEGV_MTESERR for sync tag check fault, Richard Henderson, 2021/01/15
- [PATCH v3 14/21] linux-user/aarch64: Implement PROT_MTE, Richard Henderson, 2021/01/15
- [PATCH v3 16/21] linux-user/aarch64: Pass syndrome to EXC_*_ABORT, Richard Henderson, 2021/01/15
- [PATCH v3 13/21] linux-user/aarch64: Implement PR_MTE_TCF and PR_MTE_TAG, Richard Henderson, 2021/01/15
- Re: [PATCH v3 13/21] linux-user/aarch64: Implement PR_MTE_TCF and PR_MTE_TAG,
Peter Maydell <=
- [PATCH v3 19/21] target/arm: Add allocation tag storage for user mode, Richard Henderson, 2021/01/15
- [PATCH v3 21/21] tests/tcg/aarch64: Add mte smoke tests, Richard Henderson, 2021/01/15
- [PATCH v3 20/21] target/arm: Enable MTE for user-only, Richard Henderson, 2021/01/15
- [PATCH v3 18/21] linux-user/aarch64: Signal SEGV_MTEAERR for async tag check error, Richard Henderson, 2021/01/15