Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: FUJITA Tomonori <fujita.tomonori@...>
Cc: <muli@...>, <linux-kernel@...>, <akpm@...>, <alexisb@...>, <andi@...>, <kvm@...>, <avi@...>
Date: Tuesday, May 27, 2008 - 12:53 am

On Tuesday 27 May 2008 05:20:54 FUJITA Tomonori wrote:

Instead of each device calling a function to check which IOMMU is right, I am 
suggesting each IOMMU come in and tell which devices it is interested in.


OK; how about this:

An example with per-device dma_ops and stacking will look like this:

pvdma->hardware->nommu/swiotlb
    ^             ^
     |              |
 e1000     rtl8139

And this scheme is going to suit everyone, agreed?

This is simple and doesn't need too many changes all around.

I was suggesting something more than this that can handle cases like an iommu 
wanting to have each device behind a bus to pass through it (it's still 
possible, but needs a per-device walk). Also, in the scenario depicted above, 
each device will start by pointing to the first iommu in the chain (pvdma in 
this case) and the iommu will then determine if that device needs to be 
passed via its translations.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, FUJITA Tomonori, (Mon May 19, 2:31 am)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, Muli Ben-Yehuda, (Sun May 25, 3:20 am)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, FUJITA Tomonori, (Mon May 26, 2:11 am)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, FUJITA Tomonori, (Mon May 26, 7:50 pm)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, Amit Shah, (Tue May 27, 12:53 am)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, FUJITA Tomonori, (Tue May 27, 1:24 am)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, FUJITA Tomonori, (Wed May 28, 6:19 am)
[PATCH v2 -mm 2/2] x86: per-device dma_mapping_ops support, FUJITA Tomonori, (Mon May 19, 2:31 am)