Messages in this thread | | | Date | Mon, 3 Jan 2022 17:17:05 +0300 | From | "Kirill A. Shutemov" <> | Subject | Re: [PATCH 19/26] x86/tdx: Make pages shared in ioremap() |
| |
On Mon, Dec 27, 2021 at 09:07:10AM -0600, Tom Lendacky wrote: > Why can't this follow the cc_platform_has() logic and maybe even live in > the cc_platform.c file (though there might be issues with that, I haven't > really looked)?
There's issue with declaring cc_pgprot_encrypted()/cc_pgprot_decrypted() in cc_platform.h. It requires pgprot_t to be defined and attempt to include relevant header leads to circular dependencies.
Moreover, pgprot_t defined in different headers, depending on an architecture.
I'm not sure how to unwind this dependency hell. Any clues?
-- Kirill A. Shutemov
| |