public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] kvm: Fix build for VT-d/AMD IOMMU
@ 2009-01-21  6:33 Sheng Yang
  2009-01-22 12:03 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Sheng Yang @ 2009-01-21  6:33 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm, weidong.han, Sheng Yang, Wei Huang

The vtd.c has renamed to iommu.c, and config option has changed to
CONFIG_IOMMU_API.

Notice now the host kernel before 2.6.29 can't work with VT-d due to API
changed... At least this patch enabled building with host kernel before 2.6.29
with CONFIG_DMAR.

Signed-off-by: Wei Huang <wei.w.huang@intel.com>
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
---
 kernel/ia64/Kbuild |    4 ++--
 kernel/x86/Kbuild  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/ia64/Kbuild b/kernel/ia64/Kbuild
index 130ec45..5bc6098 100644
--- a/kernel/ia64/Kbuild
+++ b/kernel/ia64/Kbuild
@@ -3,8 +3,8 @@ obj-m := kvm.o kvm-intel.o
 kvm-objs := kvm_main.o ioapic.o coalesced_mmio.o kvm-ia64.o kvm_fw.o \
 	irq_comm.o ../anon_inodes.o ../external-module-compat.o
 
-ifeq ($(CONFIG_DMAR),y)
-kvm-objs += vtd.o
+ifeq ($(CONFIG_IOMMU_API),y)
+kvm-objs += iommu.o
 endif
 
 EXTRA_CFLAGS_vcpu.o += -mfixed-range=f2-f5,f12-f127
diff --git a/kernel/x86/Kbuild b/kernel/x86/Kbuild
index c4723b1..4ef1168 100644
--- a/kernel/x86/Kbuild
+++ b/kernel/x86/Kbuild
@@ -9,8 +9,8 @@ kvm-objs := kvm_main.o x86.o mmu.o x86_emulate.o ../anon_inodes.o irq.o i8259.o
 ifeq ($(EXT_CONFIG_KVM_TRACE),y)
 kvm-objs += kvm_trace.o
 endif
-ifeq ($(CONFIG_DMAR),y)
-kvm-objs += vtd.o
+ifeq ($(CONFIG_IOMMU_API),y)
+kvm-objs += iommu.o
 endif
 kvm-intel-objs := vmx.o vmx-debug.o ../external-module-compat.o
 kvm-amd-objs := svm.o ../external-module-compat.o
-- 
1.5.4.5


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

* Re: [PATCH 1/1] kvm: Fix build for VT-d/AMD IOMMU
  2009-01-21  6:33 [PATCH 1/1] kvm: Fix build for VT-d/AMD IOMMU Sheng Yang
@ 2009-01-22 12:03 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-01-22 12:03 UTC (permalink / raw)
  To: Sheng Yang; +Cc: kvm, weidong.han, Wei Huang

Sheng Yang wrote:
> The vtd.c has renamed to iommu.c, and config option has changed to
> CONFIG_IOMMU_API.
>
> Notice now the host kernel before 2.6.29 can't work with VT-d due to API
> changed... At least this patch enabled building with host kernel before 2.6.29
> with CONFIG_DMAR.
>   

Applied, thanks.


-- 
error compiling committee.c: too many arguments to function


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

end of thread, other threads:[~2009-01-22 12:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21  6:33 [PATCH 1/1] kvm: Fix build for VT-d/AMD IOMMU Sheng Yang
2009-01-22 12:03 ` Avi Kivity

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