RE: [PATCH v9 0/2] Support TDX guests on Hyper-V (the x86/tdx part)

From: Dexuan Cui
Date: Wed Jun 28 2023 - 14:45:40 EST


> From: Wei Liu <wei.liu@xxxxxxxxxx>
> Sent: Wednesday, June 28, 2023 11:06 AM
> To: Dexuan Cui <decui@xxxxxxxxxxxxx>
> Subject: Re: [PATCH v9 0/2] Support TDX guests on Hyper-V (the x86/tdx
> part)
>
> On Wed, Jun 21, 2023 at 12:13:15PM -0700, Dexuan Cui wrote:
> > 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.
> > ...
> > 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(-)
>
> Dexuan, do you expect these to go through the Hyper-V tree?
>
> Thanks,
> Wei.

I suppose Dave and/or other x86 folks would like the 2 patches to go
through the tip tree if the patches look good.

Hi Dave, any comments on the patches?

Thanks,
Dexuan