blob: 25d22b2d6509e3e0924c39641214085de2aa2b52 [file] [log] [blame]
Avi Kivityedf88412007-12-16 11:02:48 +02001
Tracey Dent9d893c62010-11-06 14:52:58 -04002ccflags-y += -Ivirt/kvm -Iarch/x86/kvm
Avi Kivityedf88412007-12-16 11:02:48 +02003
Marcelo Tosatti229456f2009-06-17 09:22:14 -03004CFLAGS_x86.o := -I.
5CFLAGS_svm.o := -I.
6CFLAGS_vmx.o := -I.
7
Marc Zyngier535cf7b2013-05-14 14:31:02 +01008KVM := ../../../virt/kvm
9
10kvm-y += $(KVM)/kvm_main.o $(KVM)/ioapic.o \
11 $(KVM)/coalesced_mmio.o $(KVM)/irq_comm.o \
Alex Williamsonec535002013-10-30 11:02:17 -060012 $(KVM)/eventfd.o $(KVM)/irqchip.o $(KVM)/vfio.o
Marc Zyngier535cf7b2013-05-14 14:31:02 +010013kvm-$(CONFIG_KVM_DEVICE_ASSIGNMENT) += $(KVM)/assigned-dev.o $(KVM)/iommu.o
14kvm-$(CONFIG_KVM_ASYNC_PF) += $(KVM)/async_pf.o
Christoph Hellwig284e9b02009-05-18 08:16:14 -040015
Avi Kivity56e82312009-08-12 15:04:37 +030016kvm-y += x86.o mmu.o emulate.o i8259.o irq.o lapic.o \
Avi Kivitye9d90d42012-07-26 18:01:50 +030017 i8254.o cpuid.o pmu.o
Christoph Hellwig284e9b02009-05-18 08:16:14 -040018kvm-intel-y += vmx.o
19kvm-amd-y += svm.o
20
21obj-$(CONFIG_KVM) += kvm.o
22obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
23obj-$(CONFIG_KVM_AMD) += kvm-amd.o