Re: [RFC PATCH 10/15] virt: tdx-guest: Set up and accept private MMIO ranges
From: Xiaoyao Li
Date: Sun Nov 22 2026 - 21:35:54 EST
On 10/26/2026 1:22 PM, Xiaoyao Li wrote:
> On 9/24/2026 12:10 PM, Zhenzhong Duan wrote:
>> Build private MMIO descriptors from the TDI report using the PCI TSM
>> MMIO helpers and accept each private range through TDG.MMIO.ACCEPT.
>>
>> Keep the descriptors while the device remains locked and tear them
>> down on acceptance failure and during unlock.
> 1. The changelog talks what it does but not why the patch is needed and what is
> the design consideration. E.g.,
>
> - why choose to setup MMIO in the .run callback instead of .lock?
I will split this patch into two:
- allocate and setup the MMIO in .lock() callback
- accept MMIO in .run() callback
This allows to re-run the .run() callback cleanly, without concerning if MMIO
range info has already been retrieved from TDI report or not.