iommu: Add domain_has_cap iommu_ops
authorSheng Yang <sheng@linux.intel.com>
Wed, 18 Mar 2009 07:33:06 +0000 (15:33 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 24 Mar 2009 09:42:51 +0000 (09:42 +0000)
commitdbb9fd8630e95b6155aff658a2b5f80e95ca2bc6
treeb24caff50e1c5bfb428cb7422608bfef95d916e8
parent58c610bd1a3f50820e45a7c09ec0e44d2cda15dd
iommu: Add domain_has_cap iommu_ops

This iommu_op can tell if domain have a specific capability, like snooping
control for Intel IOMMU, which can be used by other components of kernel to
adjust the behaviour.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
arch/x86/kernel/amd_iommu.c
drivers/base/iommu.c
drivers/pci/intel-iommu.c
include/linux/iommu.h