Re: [PATCH 00/20] x86/tdx: Rewrite TDCALL wrappers

2024-05-20 Thread Huang, Kai
On Fri, 2024-05-17 at 08:18 -0700, Dave Hansen wrote: > On 5/17/24 07:19, Kirill A. Shutemov wrote: > > arch/x86/boot/compressed/tdx.c| 32 +--- > > arch/x86/coco/tdx/tdcall.S| 145 ++- > > arch/x86/coco/tdx/tdx-shared.c| 26 +-- > > arch/x86/coco/tdx/tdx.c

Re: [PATCH 00/20] x86/tdx: Rewrite TDCALL wrappers

2024-05-17 Thread Dave Hansen
On 5/17/24 07:19, Kirill A. Shutemov wrote: > arch/x86/boot/compressed/tdx.c| 32 +--- > arch/x86/coco/tdx/tdcall.S| 145 ++- > arch/x86/coco/tdx/tdx-shared.c| 26 +-- > arch/x86/coco/tdx/tdx.c | 298 -- > arch/x86/hyperv/ivm.c

[PATCH 00/20] x86/tdx: Rewrite TDCALL wrappers

2024-05-17 Thread Kirill A. Shutemov
Sean noticing that the TDCALL wrappers were generating a lot of awful code. TDCALL calls are centralized into a few megawrappers that take the struct tdx_module_args as input. Most of the call sites only use a few arguments, but they have to zero out unused fields in the structure to avoid data le