]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: Device Assignment: Move vtd.c from arch/x86/kvm/ to virt/kvm/
authorZhang xiantao <xiantao.zhang@intel.com>
Thu, 11 Sep 2008 05:19:32 +0000 (13:19 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 15 Oct 2008 12:25:32 +0000 (14:25 +0200)
Preparation for kvm/ia64 VT-d support.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/Makefile
virt/kvm/vtd.c [moved from arch/x86/kvm/vtd.c with 100% similarity]

index 3072b17447ab80a6ed6314891f01351cf82709ed..7dce593b9c66362485be2da70acca3534c6628f7 100644 (file)
@@ -7,14 +7,14 @@ common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \
 ifeq ($(CONFIG_KVM_TRACE),y)
 common-objs += $(addprefix ../../../virt/kvm/, kvm_trace.o)
 endif
+ifeq ($(CONFIG_DMAR),y)
+common-objs += $(addprefix ../../../virt/kvm/, vtd.o)
+endif
 
 EXTRA_CFLAGS += -Ivirt/kvm -Iarch/x86/kvm
 
 kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
        i8254.o
-ifeq ($(CONFIG_DMAR),y)
-kvm-objs += vtd.o
-endif
 obj-$(CONFIG_KVM) += kvm.o
 kvm-intel-objs = vmx.o
 obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
similarity index 100%
rename from arch/x86/kvm/vtd.c
rename to virt/kvm/vtd.c