Thread (28 messages) 28 messages, 7 authors, 2015-04-12

[PATCH 00/16 v2] iommu: Move domain allocation into drivers

From: heiko@sntech.de (Heiko Stuebner)
Date: 2015-03-28 00:39:41
Also in: linux-iommu, linux-rockchip, linux-samsung-soc, linux-tegra, lkml

Am Donnerstag, 26. M?rz 2015, 13:43:03 schrieb Joerg Roedel:
Changes v1-v2:

	* Rebased to v4.0-rc5
	* Converted domain-types to a bit-field

Hi,

here is patch-set to replace the existing domain_init and
domain_destroy iommu-ops with the new domain_alloc and
domain_free callbacks

The new callbacks move the allocation of iommu domains into
the iommu driver, allowing them to put a generic
iommu_domain struct into their own domain struct. This makes
domain handling in the drivers more cache efficient and
prepares the introduction of default domains in another
patch-set.

While at it, this patch-set also introduces domain types.
These are internal to the iommu core code for now, there are
three of them:

	* DMA-API domains
	* Identity mapped domains
	* Domains unmanaged by the iommu-core, used for
	  iommu-api so that the users can create their own
	  mappings

The patches have been compile tested for x86, ARM and PPC
and runtime tested on x86 (Intel VT-d and AMD IOMMU).

Please review.
core and Rockchip bits
Tested-by: Heiko Stuebner <heiko@sntech.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help