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

From: Dave Hansen
Date: Tue Dec 10 2024 - 11:58:51 EST


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.