[PATCH 0/9] Factor VT-d KVM functions into a generic API

Joerg Roedel joerg.roedel at amd.com
Thu Nov 27 07:40:45 PST 2008


Hi,

this patch series makes the current KVM device passthrough code generic
enough so that other IOMMU implementation can also plug into this code.
It works by factoring the functions Vt-d code exports to KVM into a
generic interface which allows different backends.

This a basic implementation of a generic interface. It can and should be
improved later to support more types of hardware IOMMUs then VT-d and
AMD IOMMU.

Since I have no VT-d hardware available these patches are only compile
tested for now.

Please review, comment and test these patches.

Thanks,

Joerg

diffstat:

 arch/ia64/Kconfig               |    3 +
 arch/ia64/kvm/Makefile          |    2 +-
 arch/x86/Kconfig                |    3 +
 arch/x86/include/asm/kvm_host.h |    3 +-
 arch/x86/kvm/Makefile           |    2 +-
 drivers/base/Makefile           |    1 +
 drivers/base/iommu.c            |   94 +++++++++++++++++++
 drivers/pci/intel-iommu.c       |   91 ++++++++++++++++++
 include/linux/iommu.h           |  100 ++++++++++++++++++++
 virt/kvm/iommu.c                |  193 +++++++++++++++++++++++++++++++++++++++
 virt/kvm/vtd.c                  |  191 --------------------------------------





More information about the iommu mailing list