On Sun, Mar 26, 2023 at 12:06:26PM -0700, Sathyanarayanan Kuppuswamy wrote: > If usage of DMA APIs / platform device is not acceptable for this use case, It is not ok to use a platform device for this because you just do not have a platform device for it, don't make one up out of thin air please, as that really doesn't even have the correct bindings to the DMA memory that you want here. > an alternative approach is to allocate a fixed number of shared buffers during > the TDX guest driver probe and use it for GetQuote requests. Although it would > limit the amount of memory we can use for GetQuote requests at a time and also > reserve a chunk of memory during the init() time, I think it is an acceptable > tradeoff when compared to alternative choices. The AMD SEV guest driver also > adopts the similar approach. Please let me know if this approach is acceptable. This sounds like a better approach. thanks, greg k-h