Re: [PATCH v4 5/9] KVM: TDX: Update exit_reason on wait_for_sept_zap return

"Edgecombe, Rick P" <[email protected]>
Newsgroups dev.linux.lists.linux-coco,org.kernel.vger.kvm,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Wed, 2026-08-19 at 17:48 +0800, Xiaoyao Li wrote:
> Update exit_reason to a value with bit[31:16] cleared and bit[15:0]
> set to TDX_INVALID_EXIT_REASON when it needs to return early due to
> wait_for_sept_zap in tdx_vcpu_run().  This avoids the stale exit_reason
> of the previous Exit being consumed twice.

Would be nice to describe a bit more on the failure mode.

> 
> Fixes: 4b2abc49712b ("KVM: TDX: Kick off vCPUs when SEAMCALL is busy during TD
> page removal")
> Cc: [email protected]
> Signed-off-by: Xiaoyao Li <[email protected]>
> ---
> Changes in v4:
> - new patch;
> ---

Code seems much clearer to me than the single bit clear.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.