All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH] arm64: mte: Fix MTE granule mask
@ 2025-09-05 12:41 Vladimir Murzin
  2025-09-08 11:49 ` Alexandru Elisei
  2025-09-08 18:38 ` Andrew Jones
  0 siblings, 2 replies; 4+ messages in thread
From: Vladimir Murzin @ 2025-09-05 12:41 UTC (permalink / raw)
  To: kvmarm; +Cc: alexandru.elisei, andrew.jones

So it generates correct mask when used together with MTE_TAG_SHIFT

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
---
 arm/mte.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arm/mte.c b/arm/mte.c
index 95d58aaa..a1bed8a7 100644
--- a/arm/mte.c
+++ b/arm/mte.c
@@ -26,7 +26,7 @@
 #define MTE_TCF_ASYMM	0b11
 
 #define MTE_GRANULE_SIZE        UL(16)
-#define MTE_GRANULE_MASK        (~(MTE_GRANULE_SIZE - 1))
+#define MTE_GRANULE_MASK        (MTE_GRANULE_SIZE - 1)
 #define MTE_TAG_SHIFT           56
 
 #define untagged(p)									\
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-09-08 18:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-05 12:41 [kvm-unit-tests PATCH] arm64: mte: Fix MTE granule mask Vladimir Murzin
2025-09-08 11:49 ` Alexandru Elisei
2025-09-08 12:09   ` Vladimir Murzin
2025-09-08 18:38 ` Andrew Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.