Re: [PATCH v5 06/16] x86/tdx: Make DMA pages shared

From
Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@linux.intel.com>
Date
2021-10-20 17:26:36
Also in
linux-alpha, linux-arch, linux-mips, linux-pci, lkml, sparclinux
Reply to
Tom Lendacky, 2021-10-20

On 10/20/21 10:22 AM, Tom Lendacky wrote:
quoted
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
Thread (83 messages) 83 messages, 12 authors, last reply 2021-11-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help