diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2023-01-27 01:11:55 +0300 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2023-01-27 20:42:09 +0300 |
commit | c30c4b2555ba93b845559a036293fcaf7ffd2b82 (patch) | |
tree | d6b6aeaf1f06216838e3ff9149eaa914b685da7a /tools/perf/scripts/python/task-analyzer.py | |
parent | 0da908c291070d89482f6211dbe81d4d43c3f7cb (diff) | |
download | linux-c30c4b2555ba93b845559a036293fcaf7ffd2b82.tar.xz |
x86/tdx: Refactor __tdx_hypercall() to allow pass down more arguments
RDI is the first argument to __tdx_hypercall() that used to pass pointer
to struct tdx_hypercall_args. RSI is the second argument that contains
flags, such as TDX_HCALL_HAS_OUTPUT and TDX_HCALL_ISSUE_STI.
RDI and RSI can also be used as arguments to TDVMCALL leafs. Move RDI to
RAX and RSI to RBP to free up them for the hypercall arguments.
RAX saved on stack during TDCALL as it returns status code in the
register.
RBP value has to be restored before returning from __tdx_hypercall() as
it is callee-saved register.
This is preparatory patch. No functional change.
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-4-kirill.shutemov%40linux.intel.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions