On 5/3/24 18:31, Joey Gouly wrote: > Now that PKEYs support has been implemented, enable it for CPUs that > support S1POE. > > Signed-off-by: Joey Gouly <joey.go...@arm.com> > Cc: Catalin Marinas <catalin.mari...@arm.com> > Cc: Will Deacon <w...@kernel.org> > Acked-by: Catalin Marinas <catalin.mari...@arm.com> Reviewed-by: Anshuman Khandual <anshuman.khand...@arm.com> > --- > arch/arm64/include/asm/pkeys.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/include/asm/pkeys.h b/arch/arm64/include/asm/pkeys.h > index a284508a4d02..3ea928ec94c0 100644 > --- a/arch/arm64/include/asm/pkeys.h > +++ b/arch/arm64/include/asm/pkeys.h > @@ -17,7 +17,7 @@ int arch_set_user_pkey_access(struct task_struct *tsk, int > pkey, > > static inline bool arch_pkeys_enabled(void) > { > - return false; > + return system_supports_poe(); > } > > static inline int vma_pkey(struct vm_area_struct *vma) Small nit. Would it better to be consistently using system_supports_poe() helper rather than arch_pkeys_enabled() inside arch/arm64/ platform code like - during POE fault handling i.e inside fault_from_pkey().
- [PATCH v4 18/29] arm64: add POE signal support Joey Gouly
- Re: [PATCH v4 18/29] arm64: add POE signal suppor... Amit Daniel Kachhap
- Re: [PATCH v4 18/29] arm64: add POE signal su... Mark Brown
- Re: [PATCH v4 18/29] arm64: add POE signa... Amit Daniel Kachhap
- Re: [PATCH v4 18/29] arm64: add POE signal suppor... Catalin Marinas
- Re: [PATCH v4 18/29] arm64: add POE signal suppor... Kevin Brodsky
- [PATCH v4 20/29] arm64: enable POE and PIE to coexist Joey Gouly
- Re: [PATCH v4 20/29] arm64: enable POE and PIE to... Catalin Marinas
- Re: [PATCH v4 20/29] arm64: enable POE and PIE to... Anshuman Khandual
- [PATCH v4 19/29] arm64: enable PKEY support for CPUs w... Joey Gouly
- Re: [PATCH v4 19/29] arm64: enable PKEY support f... Anshuman Khandual
- [PATCH v4 09/29] KVM: arm64: use `at s1e1a` for POE Joey Gouly
- Re: [PATCH v4 09/29] KVM: arm64: use `at s1e1a` f... Marc Zyngier
- Re: [PATCH v4 09/29] KVM: arm64: use `at s1e1a` f... Anshuman Khandual
- [PATCH v4 10/29] arm64: enable the Permission Overlay ... Joey Gouly
- Re: [PATCH v4 10/29] arm64: enable the Permission... Catalin Marinas
- Re: [PATCH v4 10/29] arm64: enable the Permission... Anshuman Khandual
- Re: [PATCH v4 10/29] arm64: enable the Permission... Mark Brown
- [PATCH v4 21/29] arm64/ptrace: add support for FEAT_PO... Joey Gouly
- Re: [PATCH v4 21/29] arm64/ptrace: add support fo... Anshuman Khandual
- [PATCH v4 12/29] arm64: add POIndex defines Joey Gouly