blob: ee1cd92b03bebdab4bcd552552843804ddf864fd [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
Paolo Bonzini6ef768f2014-11-20 13:45:31 +010010kvm-y += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o \
Alex Williamsonec535002013-10-30 11:02:17 -060011 $(KVM)/eventfd.o $(KVM)/irqchip.o $(KVM)/vfio.o
Marc Zyngier535cf7b2013-05-14 14:31:02 +010012kvm-$(CONFIG_KVM_DEVICE_ASSIGNMENT) += $(KVM)/assigned-dev.o $(KVM)/iommu.o
13kvm-$(CONFIG_KVM_ASYNC_PF) += $(KVM)/async_pf.o
Christoph Hellwig284e9b02009-05-18 08:16:14 -040014
Avi Kivity56e82312009-08-12 15:04:37 +030015kvm-y += x86.o mmu.o emulate.o i8259.o irq.o lapic.o \
Paolo Bonzini6ef768f2014-11-20 13:45:31 +010016 i8254.o ioapic.o irq_comm.o cpuid.o pmu.o
Christoph Hellwig284e9b02009-05-18 08:16:14 -040017kvm-intel-y += vmx.o
18kvm-amd-y += svm.o
19
20obj-$(CONFIG_KVM) += kvm.o
21obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
22obj-$(CONFIG_KVM_AMD) += kvm-amd.o