x86/tdx: Add more registers to struct tdx_hypercall_args
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 26 Jan 2023 22:11:54 +0000 (01:11 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Fri, 27 Jan 2023 17:42:09 +0000 (09:42 -0800)
commit0da908c291070d89482f6211dbe81d4d43c3f7cb
treee939c8c967b31fd89079eb558cfa1633101911ec
parent3543f8830babe2666051fb239545f51e0aae4c84
x86/tdx: Add more registers to struct tdx_hypercall_args

struct tdx_hypercall_args is used to pass down hypercall arguments to
__tdx_hypercall() assembly routine.

Currently __tdx_hypercall() handles up to 6 arguments. In preparation to
changes in __tdx_hypercall(), expand the structure to 6 more registers
and generate asm offsets for them.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20230126221159.8635-3-kirill.shutemov%40linux.intel.com
arch/x86/include/asm/shared/tdx.h
arch/x86/kernel/asm-offsets.c