On 08/01/2024 11:23, Amit Daniel Kachhap wrote:
PCuABI specification introduces memory reservation so add a flag MMF_PCUABI_RESERVE to represent such memory mappings. As memory reservations are mm specific, this flag will help to differentiate between purecap and compat process memory mappings.
Signed-off-by: Amit Daniel Kachhap amitdaniel.kachhap@arm.com
include/linux/sched/coredump.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/linux/sched/coredump.h b/include/linux/sched/coredump.h index 0ee96ea7a0e9..fa5b5ae5f67c 100644 --- a/include/linux/sched/coredump.h +++ b/include/linux/sched/coredump.h @@ -91,4 +91,6 @@ static inline int get_dumpable(struct mm_struct *mm) MMF_DISABLE_THP_MASK | MMF_HAS_MDWE_MASK) #define MMF_VM_MERGE_ANY 29
+#define MMF_PCUABI_RESERVE 30 /* PCuABI memory reservation feature */
Reservations are abbreviated as "reserv" everywhere else AFAICT, so probably MMF_PCUABI_RESERV without the E?
Kevin
#endif /* _LINUX_SCHED_COREDUMP_H */