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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: FUJITA Tomonori
Date: Sunday, May 25, 2008 - 11:11 pm

On Mon, 26 May 2008 09:39:20 +0530
Amit Shah <amit.shah@qumranet.com> wrote:


Well, without per-device dma_ops, IOMMUs could live. But it's pretty
hacky. Every time a dma operation is called, IOMMUs need to figure out
how a device should be handled.

If IOMMUs can set dma_ops for the device when a new device is created,
IOMMUs don't care anything any more. That's much clean. That's What
the POWER architecture does.



As Muli poinsted out, For pvdma, you need stacking per-device
dma_ops. With per-device dma_ops, you don't need hack like adding
is_pv_device hook in dma_ops. You can set your dma_ops to only pci
devices that you are interested.
--
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, (Sun May 18, 11:31 pm)
[PATCH v2 -mm 2/2] x86: per-device dma_mapping_ops support, FUJITA Tomonori, (Sun May 18, 11:31 pm)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, Muli Ben-Yehuda, (Sun May 25, 12:20 am)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, FUJITA Tomonori, (Sun May 25, 11:11 pm)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, FUJITA Tomonori, (Mon May 26, 4:50 pm)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, FUJITA Tomonori, (Mon May 26, 10:24 pm)
Re: [PATCH v2 -mm 0/2] x86: per-device dma_mapping_ops, FUJITA Tomonori, (Wed May 28, 3:19 am)