LWN.net Logo

IOMMU: Make iommu_ops per-bus_type

From:  Joerg Roedel <joerg.roedel@amd.com>
To:  <iommu@lists.linux-foundation.org>
Subject:  [PATCH 0/10 v3] IOMMU: Make iommu_ops per-bus_type
Date:  Fri, 23 Sep 2011 17:45:46 +0200
Message-ID:  <1316792756-3395-1-git-send-email-joerg.roedel@amd.com>
Cc:  Greg Kroah-Hartman <gregkh@suse.de>, Alex Williamson <alex.williamson@redhat.com>, Ohad Ben-Cohen <ohad@wizery.com>, David Woodhouse <dwmw2@infradead.org>, David Brown <davidb@codeaurora.org>, <joro@8bytes.org>, <linux-kernel@vger.kernel.org>
Archive-link:  Article, Thread

Hi,

here is the third version of the patch-set to make the iommu_ops used in
the iommu-api a bus_type property. This will allow us to move code out
of the iommu drivers into generic code and it simplifies the
implementation of the Alex' device-group property.

It converts all iommu drivers to use the new registration interface and
completly removes the register_iommu interface.

Please let me know of any remaining objections. If there are no I would
be very happy about Acked-By's :)

Regards,

	Joerg

Changes v2->v3:
	* Moved bus_set_iommu() to drivers/iommu/iommu.c to get rid of
	  the CONFIG_IOMMU_API #ifdef around it in bus.c

Changes v1->v2:

        * Added kernel-doc comments to bus_set_iommu function
        * Removed iommu.h include from device.h and added a forward
          declaration for struct iommu_ops

Diffstat:

 arch/ia64/kvm/kvm-ia64.c           |    3 +-
 arch/x86/kvm/x86.c                 |    3 +-
 drivers/iommu/amd_iommu.c          |    2 +-
 drivers/iommu/intel-iommu.c        |    2 +-
 drivers/iommu/iommu.c              |   81 ++++++++++++++++++++++++++++--------
 drivers/iommu/msm_iommu.c          |    2 +-
 drivers/iommu/omap-iommu.c         |    2 +-
 drivers/media/video/omap3isp/isp.c |    2 +-
 include/linux/device.h             |    6 +++
 include/linux/iommu.h              |   21 +++++----
 virt/kvm/iommu.c                   |    4 +-
 11 files changed, 92 insertions(+), 36 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2011, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds