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

From: Dave Hansen
Date: Fri May 17 2024 - 11:18:39 EST


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 | 33 +---
> arch/x86/include/asm/shared/tdx.h | 159 +++++++++++-----
> arch/x86/include/asm/tdx.h | 2 +
> arch/x86/virt/vmx/tdx/tdxcall.S | 29 +--
> tools/objtool/noreturns.h | 2 +-
> 9 files changed, 322 insertions(+), 404 deletions(-)

I was going to grumble about this being a waste of time, but it looks
like this gives smaller binaries and less code. Looks promising so far!