Re: [PATCH 19/26] x86/tdx: Make pages shared in ioremap()

From: Kirill A. Shutemov
Date: Tue Dec 28 2021 - 18:33:14 EST


On Tue, Dec 28, 2021 at 07:39:46PM +0100, Borislav Petkov wrote:
> But my point about removing the outer check is bull - you need the
> TDX/SEV checks too to figure out which mask to use.
>
> So, reading Tom's latest email, having
>
> cc_pgprot_encrypted(prot)
>
> and
> cc_pgprot_decrypted(prot)
>
> in cc_platform.c and which hide all that logic inside doesn't sound like
> a bad idea. And cc_platform.c already looks at sme_me_mask and we do
> that there for the early path so I guess that's probably halfway fine...

Okay, will go this path.

--
Kirill A. Shutemov