Re: [PATCH v6 29/60] i386/tdx: Handle KVM_SYSTEM_EVENT_TDX_FATAL

Edgecombe, Rick P
2024-11-05T20:58:57Z

+Binbin

On Tue, 2024-11-05 at 01:23 -0500, Xiaoyao Li wrote:
> TD guest can use TDG.VP.VMCALL<REPORT_FATAL_ERROR> to request
> termination. KVM translates such request into KVM_EXIT_SYSTEM_EVENT with
> type of KVM_SYSTEM_EVENT_TDX_FATAL.
>
> Add hanlder for such exit. Parse and print the error message, and
> terminate the TD guest in the handler.
>
> Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
> ---

Binbin was looking at re-arranging the TDX dev branch to try to move these
patches earlier in the series so we could get them finalized for the purpose of
fully settling the uAPI for QEMU.

I wonder if we should just post a very small series with the KVM implementations
for MapGPA and ReportFatalError and we could try to get some stability
established. Maybe that would be enough?

Paolo, any thoughts on the merits of trying to get to that part earlier?