Re: [RFC PATCH 06/15] virt: tdx-guest: Support TDI bind and unbind operations
From: Edgecombe, Rick P
Date: Mon Nov 02 2026 - 16:35:36 EST
On Thu, 2026-10-29 at 03:26 +0000, Duan, Zhenzhong wrote:
> I want to discuss this further.
>
> If the TSM driver successfully locks a device but later fails to unlock it,
Can you explain some concrete scenarios where this would happen? We can think
about whether it is required for an initial minimal set that does something
useful.
> the core cannot confirm that the device has returned to a safe, unlocked
> state. The device may still be locked or partially torn down. So besides
> return failure to the core, I think the core should mark that device as
> broken and prevent it from being attached to a driver. Further lock/unlock/run
> should be forbidden in the core, Example changes: