public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/12] Factor VT-d KVM functions into a generic API (with multiple device assignment support)
@ 2008-12-02 13:01 Joerg Roedel
  2008-12-02 13:01 ` [PATCH 01/12] VT-d: Support multiple device assignment for KVM Joerg Roedel
                   ` (13 more replies)
  0 siblings, 14 replies; 19+ messages in thread
From: Joerg Roedel @ 2008-12-02 13:01 UTC (permalink / raw)
  To: Ingo Molnar, Avi Kivity, David Woodhouse, Greg Kroah-Hartman,
	Alexander Graf, Han Weidong
  Cc: linux-kernel, kvm, iommu

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 is the second version of the patchset. The most important change to
the previous version is that this patchset was rebased to the improved
API from Han Weidong which supports multiple devices per IOMMU domain.

For completeness, this series also includes the patches from Han with
some cleanups. So this patchset can be applied on current avi/master
tree.

For testing this code can also be pulled against avi/master tree from

git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu.git iommu-api

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          |    4 +-
 arch/x86/Kconfig                |    3 +
 arch/x86/include/asm/kvm_host.h |    3 +-
 arch/x86/kvm/Makefile           |    4 +-
 drivers/base/Makefile           |    1 +
 drivers/base/iommu.c            |  100 ++++++
 drivers/pci/dmar.c              |   15 +-
 drivers/pci/intel-iommu.c       |  738 +++++++++++++++++++++++++++++++++------
 include/linux/dma_remapping.h   |   21 +-
 include/linux/dmar.h            |    2 +
 include/linux/intel-iommu.h     |   13 +-
 include/linux/iommu.h           |  109 ++++++
 include/linux/kvm.h             |    5 +
 include/linux/kvm_host.h        |   23 +-
 virt/kvm/{vtd.c => iommu.c}     |  131 +++++---
 virt/kvm/kvm_main.c             |   49 +++-





^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-12-04 10:47 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 13:01 [PATCH 0/12] Factor VT-d KVM functions into a generic API (with multiple device assignment support) Joerg Roedel
2008-12-02 13:01 ` [PATCH 01/12] VT-d: Support multiple device assignment for KVM Joerg Roedel
2008-12-02 13:01 ` [PATCH 02/12] KVM: change to use new APIs for kvm vtd Joerg Roedel
2008-12-02 13:01 ` [PATCH 03/12] KVM: rename vtd.c to iommu.c Joerg Roedel
2008-12-02 13:01 ` [PATCH 04/12] introcude linux/iommu.h for an iommu api Joerg Roedel
2008-12-02 13:01 ` [PATCH 05/12] add frontend implementation for the IOMMU API Joerg Roedel
2008-12-02 13:01 ` [PATCH 06/12] select IOMMU_API when DMAR and/or AMD_IOMMU is selected Joerg Roedel
2008-12-02 13:01 ` [PATCH 07/12] KVM: change KVM iommu.c to use IOMMU API Joerg Roedel
2008-12-02 13:01 ` [PATCH 08/12] VT-d: adapt domain init and destroy functions for " Joerg Roedel
2008-12-02 13:01 ` [PATCH 09/12] VT-d: adapt device attach and detach " Joerg Roedel
2008-12-02 13:01 ` [PATCH 10/12] VT-d: adapt domain map and unmap " Joerg Roedel
2008-12-02 13:01 ` [PATCH 11/12] VT-d: adapt domain iova_to_phys function " Joerg Roedel
2008-12-02 13:01 ` [PATCH 12/12] VT-d: register functions for the " Joerg Roedel
2008-12-03  3:44 ` [PATCH 0/12] Factor VT-d KVM functions into a generic API (with multiple device assignment support) Greg KH
2008-12-03  7:50   ` Joerg Roedel
2008-12-03  7:53     ` Greg KH
2008-12-03  9:03       ` Joerg Roedel
2008-12-04 10:47         ` Muli Ben-Yehuda
2008-12-03 10:17 ` Han, Weidong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox