lkml.org 
[lkml]   [2021]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v5 06/16] x86/tdx: Make DMA pages shared
From
Date


On 10/20/21 10:22 AM, Tom Lendacky wrote:
>>
>> For non TDX case, in CC_ATTR_HOST_MEM_ENCRYPT, we should still call
>> amd_force_dma_unencrypted() right?
>
> What I'm saying is that you wouldn't have amd_force_dma_unencrypted(). I
> think the whole force_dma_unencrypted() can exist as-is in a different
> file, whether that's cc_platform.c or mem_encrypt_common.c.
>
> It will return true for an SEV or TDX guest, true for an SME host based
> on the DMA mask or else false. That should work just fine for TDX.

Got it. Thanks for clarifying it.

--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer

\
 
 \ /
  Last update: 2021-10-20 19:27    [W:0.502 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site