[RESEND,v9,0/2] Support TDX guests on Hyper-V (the x86/tdx part)

Message ID 20230811021246.821-1-decui@microsoft.com
Headers
Series Support TDX guests on Hyper-V (the x86/tdx part) |

Message

Dexuan Cui Aug. 11, 2023, 2:12 a.m. UTC
  (Resending the pachset as the v9 sent on 6/23/2023 didn't draw much attention)

The two patches are based on today's tip.git's master branch.

Note: the two patches don't apply to the current x86/tdx branch, which
doesn't have commit 75d090fd167a ("x86/tdx: Add unaccepted memory support").

As Dave suggested, I moved some local variables of tdx_map_gpa() to
inside the loop. I added Sathyanarayanan's Reviewed-by.

Please review.

FWIW, the old versons are here:
v9: https://lwn.net/ml/linux-kernel/20230621191317.4129-1-decui@microsoft.com/
v8: https://lwn.net/ml/linux-kernel/20230620154830.25442-1-decui@microsoft.com/
v7: https://lwn.net/ml/linux-kernel/20230616044701.15888-1-decui%40microsoft.com/
v6: https://lwn.net/ml/linux-kernel/20230504225351.10765-1-decui@microsoft.com/

Dexuan Cui (2):
  x86/tdx: Retry TDVMCALL_MAP_GPA() when needed
  x86/tdx: Support vmalloc() for tdx_enc_status_changed()

 arch/x86/coco/tdx/tdx.c           | 87 ++++++++++++++++++++++++++-----
 arch/x86/include/asm/shared/tdx.h |  2 +
 2 files changed, 77 insertions(+), 12 deletions(-)