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: <linux-kernel@...>, <akpm@...>, <muli@...>, <alexisb@...>, <andi@...>, <kvm@...>, <avi@...>
Date: Thursday, May 22, 2008 - 6:43 am

On Monday 19 May 2008 12:01:27 FUJITA Tomonori wrote:

I think what's more useful is a chain with a properly defined order or 
hierarchy (based on what Muli suggested last time we discussed this

http://lkml.org/lkml/2007/11/12/44 )

The suggested order was (in calling order):
pvdma->hardare->nommu/swiotlb

The discussion in the thread pointed to above has details as to why.




OK; this sounds helpful. the hook can make a hypercall and confirm with the 
host kernel if the device in question is an assigned physical device. If yes, 
we replace the dma_ops. Though, the original intent of having stackable ops 
is that we might want to go through the swiotlb in the guest even for an 
assigned device if the guest dma addresses are not in the addressable range 
of the guest chipset.


From what we've discussed so far, it looks like stackable dma ops will 
definitely be needed. Does this patchset provide something that stacking 
won't?


Amit.
--
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, Amit Shah, (Thu May 22, 6:43 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, 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)