Skip to content
Permalink
Browse files
x86/tdx: Make VirtIO use DMA API in TDX guest
VirtIO for KVM is a primary way to provide IO for TD guest. All memory
that used for communication with the host has to be marked as shared.

The easiest way to archive that is to use DMA API that already knows how
to deal with shared memory.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
  • Loading branch information
kiryl authored and Kuppuswamy Sathyanarayanan committed Oct 12, 2020
1 parent c54e0f6 commit 0cb8b5708223bba7e3ccd67754376d91305a1085
Showing 1 changed file with 3 additions and 0 deletions.
@@ -255,6 +255,9 @@ static bool vring_use_dma_api(struct virtio_device *vdev)
if (xen_domain())
return true;

if (is_tdx_guest())
return true;

return false;
}

0 comments on commit 0cb8b57

Please sign in to comment.