diff options
| author | Kai Huang <[email protected]> | 2023-08-15 11:02:03 +0000 |
|---|---|---|
| committer | Dave Hansen <[email protected]> | 2023-09-12 23:30:14 +0000 |
| commit | 8a8544bde858e5d62d79df6baaa387e0b6587dc7 (patch) | |
| tree | 5d92a4096a19646c64cfd323f991f597c08a970b /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | x86/tdx: Reimplement __tdx_hypercall() using TDX_MODULE_CALL asm (diff) | |
| download | kernel-8a8544bde858e5d62d79df6baaa387e0b6587dc7.tar.gz kernel-8a8544bde858e5d62d79df6baaa387e0b6587dc7.zip | |
x86/tdx: Remove 'struct tdx_hypercall_args'
Now 'struct tdx_hypercall_args' is basically 'struct tdx_module_args'
minus RCX. Although from __tdx_hypercall()'s perspective RCX isn't
used as shared register thus not part of input/output registers, it's
not worth to have a separate structure just due to one register.
Remove the 'struct tdx_hypercall_args' and use 'struct tdx_module_args'
instead in __tdx_hypercall() related code. This also saves the memory
copy between the two structures within __tdx_hypercall().
Suggested-by: Peter Zijlstra <[email protected]>
Signed-off-by: Kai Huang <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Reviewed-by: Kirill A. Shutemov <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/all/798dad5ce24e9d745cf0e16825b75ccc433ad065.1692096753.git.kai.huang%40intel.com
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
