Re: [PATCHv2 00/29] TDX Guest: TDX core support

Kai Huang
2022-02-09T11:57:35Z

> 60 files changed, 2079 insertions(+), 142 deletions(-)
> create mode 100644 Documentation/x86/tdx.rst
> create mode 100644 arch/x86/boot/compressed/tdcall.S
> create mode 100644 arch/x86/boot/compressed/tdx.c
> create mode 100644 arch/x86/boot/compressed/tdx.h
> create mode 100644 arch/x86/boot/io.h
> create mode 100644 arch/x86/include/asm/shared/io.h
> create mode 100644 arch/x86/include/asm/shared/tdx.h
> create mode 100644 arch/x86/include/asm/tdx.h
> create mode 100644 arch/x86/kernel/tdcall.S
> create mode 100644 arch/x86/kernel/tdx.c
>

Hi,

Is it better to change the file name(s) to reflect they are for TDX guest
support, for instance, especially the last one arch/x86/kernel/tdx.c?

TDX host support basically does detection of SEAM, TDX KeyIDs, P-SEAMLDR and
initialize the TDX module, so likely TDX host support will introduce couple of
new files to do above things respectively, and the majority of the code could be
self-contained under some directory (currently under arch/x86/kernel/cpu/tdx/,
but can be changed of course). Could we have some suggestions on how to
organize?

Thanks,
-Kai