Re: [RFC PATCH V3 08/11] swiotlb: Add bounce buffer remap address setting function

From
Tom Lendacky <thomas.lendacky@amd.com>
Date
2021-06-14 13:29:42
Also in
linux-arch, linux-hyperv, linux-iommu, linux-scsi, lkml, xen-devel
Reply to
Christoph Hellwig, 2021-06-14
On 6/14/21 2:12 AM, Christoph Hellwig wrote:
On Mon, Jun 07, 2021 at 10:56:47PM +0800, Tianyu Lan wrote:
quoted
These addresses in extra address space works as system memory mirror. The 
shared memory with host in Isolation VM needs to be accessed via extra 
address space which is above shared gpa boundary.
Why?
IIUC, this is using the vTOM feature of SEV-SNP. When this feature is
enabled for a VMPL level, any physical memory addresses below vTOM are
considered private/encrypted and any physical memory addresses above vTOM
are considered shared/unencrypted. With this option, you don't need a
fully enlightened guest that sets and clears page table encryption bits.
You just need the DMA buffers to be allocated in the proper range above vTOM.

See the section on "Virtual Machine Privilege Levels" in
https://www.amd.com/system/files/TechDocs/SEV-SNP-strengthening-vm-isolation-with-integrity-protection-and-more.pdf.

Thanks,
Tom
Thread (49 messages) 49 messages, 8 authors, last reply 2021-07-12
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