x86/tdx: Wrap exit reason with hcall_func()
authorNikolay Borisov <nik.borisov@suse.com>
Fri, 5 May 2023 12:03:32 +0000 (15:03 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Tue, 23 May 2023 14:01:45 +0000 (07:01 -0700)
commit122333d6bd229af279cdb35d1b874b71b3b9ccfb
treef4063006f36a62e8856ddcd85886491947d87ae9
parent44c026a73be8038f03dbdeef028b642880cf1511
x86/tdx: Wrap exit reason with hcall_func()

TDX reuses VMEXIT "reasons" in its guest->host hypercall ABI.  This is
confusing because there might not be a VMEXIT involved at *all*.
These instances are supposed to document situation and reduce confusion
by wrapping VMEXIT reasons with hcall_func().

The decompression code does not follow this convention.

Unify the TDX decompression code with the other TDX use of VMEXIT reasons.
No functional changes.

Signed-off-by: Nikolay Borisov <nik.borisov@suse.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: https://lore.kernel.org/all/20230505120332.1429957-1-nik.borisov%40suse.com
arch/x86/boot/compressed/tdx.c
arch/x86/coco/tdx/tdx.c
arch/x86/include/asm/shared/tdx.h