Messages in this thread | | | Date | Sun, 6 Aug 2023 14:29:15 +0300 | From | kirill.shutemov@linux ... | Subject | Re: [PATCH v3 09/12] x86/tdx: Remove 'struct tdx_hypercall_args' |
| |
On Wed, Jul 26, 2023 at 11:25:11PM +1200, Kai Huang wrote: > 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(). > > Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> > Cc: Dave Hansen <dave.hansen@linux.intel.com> > Cc: Peter Zijlstra <peterz@infradead.org> > Suggested-by: Peter Zijlstra <peterz@infradead.org> > Signed-off-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
-- Kiryl Shutsemau / Kirill A. Shutemov
| |