Re: [PATCH v5 3/3] x86/tdx: Add Quote generation support

From: Dave Hansen
Date: Mon May 09 2022 - 10:14:34 EST


On 5/9/22 05:09, Kirill A. Shutemov wrote:
> Private->Shared conversion is destructive. You have to split SEPT, flush
> TLB. Backward conversion even more costly.
>
> Rule of thumb is avoid conversion where possible. DMA API is there for
> you.

Kirill, I understand that the DMA API is a quick fix today. But is it
_really_ the right long-term interface?

There will surely come a time when TDX I/O devices won't be using fixed
bounce buffers. What will the quote generation code do then? How will
we know to come back around and fix this up?

Does SEV or the s390 ultravisor need anything like this?