]> xenbits.xensource.com Git - xen.git/commit
xen/arm: p2m: Clean cache PT when the IOMMU doesn't support coherent walk
authorJulien Grall <julien.grall@linaro.org>
Mon, 19 May 2014 16:23:57 +0000 (17:23 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 21 May 2014 12:53:21 +0000 (13:53 +0100)
commit4c5f4cb78cec23411ab02353a93c3d2263dea47a
tree0d4dbad25baa2f659a6654833d819174706edc41
parente86539a388314cd3dca88f5e69d7873343197cd8
xen/arm: p2m: Clean cache PT when the IOMMU doesn't support coherent walk

Some IOMMU don't suppport coherent PT walk. When the p2m is shared with
the CPU, Xen has to make sure the PT changes have reached the memory.

Introduce new IOMMU function that will check if the IOMMU feature is enabled
for a specified domain.

On ARM, the platform can contain multiple IOMMUs. Each of them may not
have the same set of feature. The domain parameter will be used to get the
set of features for IOMMUs used by this domain.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mm.c
xen/arch/arm/p2m.c
xen/drivers/passthrough/iommu.c
xen/include/asm-arm/mm.h
xen/include/xen/hvm/iommu.h
xen/include/xen/iommu.h