Re: [PATCH v6 6/6] drivers/node: Show in sysfs node's crypto capabilities

From: Mike Rapoport
Date: Fri Feb 04 2022 - 08:38:16 EST


On Fri, Feb 04, 2022 at 09:27:42AM -0300, Martin Fernandez wrote:
> On 2/4/22, Mike Rapoport <rppt@xxxxxxxxxx> wrote:
> > On Thu, Feb 03, 2022 at 01:43:28PM -0300, Martin Fernandez wrote:
> >> +Description:
> >> + This value is 1 if all system memory in this node is
> >> + marked with EFI_MEMORY_CPU_CRYPTO, indicating that the
> >
> > It didn't jump at me at previous postings, but other architectures won't
> > necessary have EFI_MEMORY_CPU_CRYPTO marking crypto-capable memory.
> >
> > How about
> >
> > This value is 1 if all system memory in this node is capable of being
> > protected with the CPU's memory cryptographic capabilities. It is 0
> > otherwise.
> > On EFI architectures with value corresponds to EFI_MEMORY_CPU_CRYPTO.
> >
> >
>
> Yes, sounds good to me.
>
> Is there other architecture with something similar to this? Or are you
> thinking on the possibility of such architecture?

AFAIU, s390 and powerpc have memory encryption capabilities, I don't know
the details though.

--
Sincerely yours,
Mike.