Re: [PATCH 11/13] dma-direct: handle the memory encryption bit in common code

2018-03-19 Thread Tom Lendacky
On 3/19/2018 5:39 AM, Christoph Hellwig wrote: > Can you test and review the V3 of the series I just sent out? > We reall should get it into linux-next ASAP. Can do. I'll get back to you on V3 thread with the results. Thanks, Tom > ___ iommu mailing

Re: [PATCH 11/13] dma-direct: handle the memory encryption bit in common code

2018-03-19 Thread Christoph Hellwig
Can you test and review the V3 of the series I just sent out? We reall should get it into linux-next ASAP. ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

Re: [PATCH 11/13] dma-direct: handle the memory encryption bit in common code

2018-03-14 Thread Tom Lendacky
On 03/13/2018 08:10 AM, Christoph Hellwig wrote: > On Mon, Mar 12, 2018 at 02:48:51PM -0500, Tom Lendacky wrote: >> Ok, I found one issue that allows this to work when the IOMMU isn't >> enabled (see below). > > Thanks, folded! > >> But the bigger issue is when the IOMMU is enabled. The IOMMU co

Re: [PATCH 11/13] dma-direct: handle the memory encryption bit in common code

2018-03-13 Thread Christoph Hellwig
On Mon, Mar 12, 2018 at 02:48:51PM -0500, Tom Lendacky wrote: > Ok, I found one issue that allows this to work when the IOMMU isn't > enabled (see below). Thanks, folded! > But the bigger issue is when the IOMMU is enabled. The IOMMU code uses > a common mapping routine to create the I/O page ta

Re: [PATCH 11/13] dma-direct: handle the memory encryption bit in common code

2018-03-12 Thread Tom Lendacky
On 3/12/2018 1:29 PM, Tom Lendacky wrote: > On 3/5/2018 11:46 AM, Christoph Hellwig wrote: >> Give the basic phys_to_dma and dma_to_phys helpers a __-prefix and add >> the memory encryption mask to the non-prefixed versions. Use the >> __-prefixed versions directly instead of clearing the mask aga

Re: [PATCH 11/13] dma-direct: handle the memory encryption bit in common code

2018-03-12 Thread Tom Lendacky
On 3/5/2018 11:46 AM, Christoph Hellwig wrote: > Give the basic phys_to_dma and dma_to_phys helpers a __-prefix and add > the memory encryption mask to the non-prefixed versions. Use the > __-prefixed versions directly instead of clearing the mask again in > various places. > > With that in place

[PATCH 11/13] dma-direct: handle the memory encryption bit in common code

2018-03-05 Thread Christoph Hellwig
Give the basic phys_to_dma and dma_to_phys helpers a __-prefix and add the memory encryption mask to the non-prefixed versions. Use the __-prefixed versions directly instead of clearing the mask again in various places. With that in place the generic dma-direct routines can be used to allocate no