Re: [PATCH v8 8.2/9] x86/virt/tdx: Reduce TDMR's reserved areas by using CMRs to find memory holes

From: Huang, Kai
Date: Tue Dec 10 2024 - 23:35:24 EST


On Tue, 2024-12-10 at 08:58 -0800, Dave Hansen wrote:
> On 12/9/24 20:24, Huang, Kai wrote:
> > OK. I would like to get the solution agreed. IIUC you prefer to just using
> > CMRs to build TDX-usable memory regions when constructing TDMRs. Please let me
> > know if I have misunderstanding.
> >
> > Please let me know if you are OK with this solution?
>
> I honestly don't know.
>
> What I would prefer is that you take another hard look at the code and
> deeply consider whether there's a simpler solution. My gut says that the
> 8.2/9 patch is too much of a band-aid and adds too much complexity. I'm
> yearning for something simpler.
>
> I'm not going to know whether I'm OK with the solution until the patch
> lands in my inbox. What I do know is that I'd really appreciate if you
> could _explore_ a simpler solution.

Yeah that's the plan. I don't have any simpler solution that doesn't use CMRs
in my mind now but will explore more. Thanks.