Skip to content

Commit

Permalink
x86/tdx: Fix typo in comment in __tdx_hypercall()
Browse files Browse the repository at this point in the history
Comment in __tdx_hypercall() points that RAX==0 indicates TDVMCALL
failure which is opposite of the truth: RAX==0 is success.

Fix the comment. No functional changes.

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-2-kirill.shutemov%40linux.intel.com
  • Loading branch information
Kirill A. Shutemov authored and Dave Hansen committed Jan 27, 2023
1 parent 5dc4c99 commit 3543f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/coco/tdx/tdcall.S
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ SYM_FUNC_START(__tdx_hypercall)
tdcall

/*
* RAX==0 indicates a failure of the TDVMCALL mechanism itself and that
* RAX!=0 indicates a failure of the TDVMCALL mechanism itself and that
* something has gone horribly wrong with the TDX module.
*
* The return status of the hypercall operation is in a separate
Expand Down

0 comments on commit 3543f88

Please sign in to comment.