[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 22/42] target/arm: Use probe_access_full for MTE
From: |
Peter Maydell |
Subject: |
Re: [PATCH v3 22/42] target/arm: Use probe_access_full for MTE |
Date: |
Thu, 6 Oct 2022 15:52:13 +0100 |
On Sat, 1 Oct 2022 at 17:50, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> The CPUTLBEntryFull structure now stores the original pte attributes, as
> well as the physical address. Therefore, we no longer need a separate
> bit in MemTxAttrs, nor do we need to walk the tree of memory regions.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> @@ -162,6 +143,13 @@ static uint8_t *allocation_tag_mem(CPUARMState *env, int
> ptr_mmu_idx,
> return NULL;
> }
>
> + /*
> + * Remember these values across the second lookup below,
> + * which may invalidate this pointer via tlb resize.
> + */
> + ptr_paddr = full->phys_addr;
> + attrs = full->attrs;
Can we set full = NULL here to catch any accidental attempts to use
the pointer after this point?
Otherwise
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- [PATCH v3 17/42] target/arm: Fix ATS12NSO* from S PL1, (continued)
- [PATCH v3 17/42] target/arm: Fix ATS12NSO* from S PL1, Richard Henderson, 2022/10/01
- [PATCH v3 18/42] target/arm: Split out get_phys_addr_disabled, Richard Henderson, 2022/10/01
- [PATCH v3 12/42] target/arm: Drop secure check for HCR.TGE vs SCTLR_EL1.M, Richard Henderson, 2022/10/01
- [PATCH v3 14/42] target/arm: Hoist read of *is_secure in S1_ptw_translate, Richard Henderson, 2022/10/01
- [PATCH v3 19/42] target/arm: Fix cacheattr in get_phys_addr_disabled, Richard Henderson, 2022/10/01
- [PATCH v3 21/42] target/arm: Enable TARGET_PAGE_ENTRY_EXTRA, Richard Henderson, 2022/10/01
- [PATCH v3 09/42] target/arm: Add is_secure parameter to do_ats_write, Richard Henderson, 2022/10/01
- [PATCH v3 22/42] target/arm: Use probe_access_full for MTE, Richard Henderson, 2022/10/01
- Re: [PATCH v3 22/42] target/arm: Use probe_access_full for MTE,
Peter Maydell <=
- [PATCH v3 11/42] target/arm: Reorg regime_translation_disabled, Richard Henderson, 2022/10/01
- [PATCH v3 15/42] target/arm: Remove env argument from combined_attrs_fwb, Richard Henderson, 2022/10/01
- [PATCH v3 20/42] target/arm: Use tlb_set_page_full, Richard Henderson, 2022/10/01
- [PATCH v3 23/42] target/arm: Use probe_access_full for BTI, Richard Henderson, 2022/10/01
- [PATCH v3 24/42] target/arm: Add ARMMMUIdx_Phys_{S,NS}, Richard Henderson, 2022/10/01