Re: [PATCH v2 00/21] Runtime TDX Module update support
From: Vishal Annapurve
Date: Fri Oct 24 2025 - 20:55:01 EST
On Fri, Oct 24, 2025 at 2:19 PM Dave Hansen <dave.hansen@xxxxxxxxx> wrote:
>
> On 10/24/25 14:12, dan.j.williams@xxxxxxxxx wrote:
> >> The SGX solution, btw, was to at least ensure forward progress (CPUSVN
> >> update) when the last enclave goes away. So new enclaves aren't
> >> *prevented* from starting but the window when the first one starts
> >> (enclave count going from 0->1) is leveraged to do the update.
> > The status quo does ensure forward progress. The TD does get built and
> > the update does complete, just the small matter of TD attestation
> > failures, right?
I would think that it's not a "small" problem if confidential
workloads on the hosts are not able to pass attestation.
>
> Oh, yeah, for sure.
>
> If we do _nothing_ in the kernel (no build vs. module update
> synchronization), then the downside is being exposed to attestation
> failures if userspace either also does nothing or has bugs.
>
> That's actually, by far, my preferred solution to this whole mess:
> Userspace plays stupid games, userspace wins stupid prizes.
>
IIUC, enforcing "Avoid updates during update sensitive times" is not
that complex and will ensure to avoid any issues with user space
logic.