Re: [RFC v2 28/32] x86/tdx: Make pages shared in ioremap()
From: Borislav Petkov
Date: Mon May 31 2021 - 13:56:42 EST
On Mon, May 31, 2021 at 10:32:44AM -0700, Kuppuswamy, Sathyanarayanan wrote:
> I think above requirement is satisfied in following implementation.
Well, I suggested a single protected_guest_has() function which does:
else if (Intel)
where amd_protected_guest_has() is implemented in arch/x86/kernel/sev.c
and intel_protected_guest_has() is implemented in, as far as I can
follow your paths in the diff, in arch/x86/kernel/tdx.c.
No is_protected_guest() and no ARCH_HAS_PROTECTED_GUEST.
Just the above controlled by CONFIG_INTEL_TDX_GUEST or whatever
the TDX config item is gonna end up being and on the AMD side by