Re: use generic dma-direct and swiotlb code for x86 V3

From: Tom Lendacky
Date: Mon Mar 19 2018 - 10:01:11 EST


On 3/19/2018 5:38 AM, Christoph Hellwig wrote:
> Hi all,
>
> this series switches the x86 code the the dma-direct implementation
> for direct (non-iommu) dma and the generic swiotlb ops. This includes
> getting rid of the special ops for the AMD memory encryption case and
> the STA2x11 SOC. The generic implementations are based on the x86
> code, so they provide the same functionality.
>

Booted the system with SME on and off and the IOMMU on, off and in
passthrough mode without issues. In each case, booted an SEV guest
without issues. I'll be able to do more extensive testing later, but
for now...

Tested-by: Tom Lendacky <thomas.lendacky@xxxxxxx>

> Changes since V2:
> - minor changelog tweaks
> - made is_sta2x11 a plain bool
>
> Changes since V1:
> - fix the length in the set_memory_decrypted call
> - fix the SEV case
>