Re: [RFC PATCH 10/15] virt: tdx-guest: Set up and accept private MMIO ranges
From: Edgecombe, Rick P
Date: Fri Nov 20 2026 - 10:59:27 EST
On Fri, 2026-11-20 at 15:42 +0800, Xiaoyao Li wrote:
> > What are the ones with the guest? We have some existing issues with normal
> > accept. I'd prefer not to pile on.
>
> TDX_MMIO_ACCEPT_SIZE_MISMATCH
>
> This is the similar for private page that happens when accepting at a large
> level than what is mapped by the host VMM. It can be handled by accepting at
> smaller level. And since currently only 4K level is supported, guest won't get
> it actually.
>
> TDX_OPERAND_INVALID
> TDX_TDI_INVALID_METADATA
> TDX_TDI_INVALID_STATE
>
> These are due to bad input from guest. Not the thing we need to worry about
> for
> a well-behaved guest.
>
> > >
Ah great. If we can avoid it in the guest it should be no problem. I guess we
can assume TSM will protect us from guest-guest contention (i.e. multiple
threads trying to move the same device through the states).