Re: [PATCH 02/20] x86/tdx: Add macros to generate TDVMCALL wrappers

2024-05-20 Thread Kirill A. Shutemov
On Fri, May 17, 2024 at 06:54:15PM +0200, Paolo Bonzini wrote: > On 5/17/24 16:19, Kirill A. Shutemov wrote: > > Introduce a set of macros that allow to generate wrappers for TDVMCALL > > leafs. The macros uses tdvmcall_trmapoline() and provides SYSV-complaint > > ABI on top of it. > > Not really

Re: [PATCH 02/20] x86/tdx: Add macros to generate TDVMCALL wrappers

2024-05-17 Thread Paolo Bonzini
On 5/17/24 16:19, Kirill A. Shutemov wrote: Introduce a set of macros that allow to generate wrappers for TDVMCALL leafs. The macros uses tdvmcall_trmapoline() and provides SYSV-complaint ABI on top of it. Not really SYSV-compliant, more like "The macros use asm() to call tdvmcall_trampoline w

[PATCH 02/20] x86/tdx: Add macros to generate TDVMCALL wrappers

2024-05-17 Thread Kirill A. Shutemov
Introduce a set of macros that allow to generate wrappers for TDVMCALL leafs. The macros uses tdvmcall_trmapoline() and provides SYSV-complaint ABI on top of it. There are three macros differentiated by number of return parameters. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/shar