[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/62] target/arm: Record tagged bit for user-only in sve_probe_p
From: |
Richard Henderson |
Subject: |
[PATCH 04/62] target/arm: Record tagged bit for user-only in sve_probe_page |
Date: |
Sun, 3 Jul 2022 13:53:21 +0530 |
Fixes a bug in that we were not honoring MTE from user-only
SVE. Copy the user-only MTE logic from allocation_tag_mem
into sve_probe_page.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/sve_helper.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c
index db15d03ded..0c6379e6e8 100644
--- a/target/arm/sve_helper.c
+++ b/target/arm/sve_helper.c
@@ -5337,6 +5337,9 @@ bool sve_probe_page(SVEHostPage *info, bool nofault,
CPUARMState *env,
#ifdef CONFIG_USER_ONLY
memset(&info->attrs, 0, sizeof(info->attrs));
+ /* Require both MAP_ANON and PROT_MTE -- see allocation_tag_mem. */
+ arm_tlb_mte_tagged(&info->attrs) =
+ (flags & PAGE_ANON) && (flags & PAGE_MTE);
#else
/*
* Find the iotlbentry for addr and return the transaction attributes.
--
2.34.1
- [PATCH 00/62] target/arm: Implement FEAT_HAFDBS, Richard Henderson, 2022/07/03
- [PATCH 01/62] accel/tcg: Introduce PageEntryExtra, Richard Henderson, 2022/07/03
- [PATCH 02/62] target/arm: Enable PageEntryExtra, Richard Henderson, 2022/07/03
- [PATCH 03/62] target/arm: Fix MTE check in sve_ldnfff1_r, Richard Henderson, 2022/07/03
- [PATCH 04/62] target/arm: Record tagged bit for user-only in sve_probe_page,
Richard Henderson <=
- [PATCH 06/62] target/arm: Use PageEntryExtra for BTI, Richard Henderson, 2022/07/03
- [PATCH 05/62] target/arm: Use PageEntryExtra for MTE, Richard Henderson, 2022/07/03
- [PATCH 07/62] include/exec: Remove target_tlb_bitN from MemTxAttrs, Richard Henderson, 2022/07/03
- [PATCH 08/62] target/arm: Create GetPhysAddrResult, Richard Henderson, 2022/07/03
- [PATCH 09/62] target/arm: Fix ipa_secure in get_phys_addr, Richard Henderson, 2022/07/03
- [PATCH 10/62] target/arm: Use GetPhysAddrResult in get_phys_addr_lpae, Richard Henderson, 2022/07/03