blob: 09d4b17be0226613990f1cefc4cd2e0b3a272d8c [file] [log] [blame]
Avi Kivityedf88412007-12-16 11:02:48 +02001
Andre Przywaraf0e4b272015-03-26 14:39:31 +00002ccflags-y += -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_ASYNC_PF) += $(KVM)/async_pf.o
Christoph Hellwig284e9b02009-05-18 08:16:14 -040013
Avi Kivity56e82312009-08-12 15:04:37 +030014kvm-y += x86.o mmu.o emulate.o i8259.o irq.o lapic.o \
Andrey Smetanine83d5882015-07-03 15:01:34 +030015 i8254.o ioapic.o irq_comm.o cpuid.o pmu.o mtrr.o \
Luiz Capitulino235539b2016-09-07 14:47:23 -040016 hyperv.o page_track.o debugfs.o
Andrey Smetanine83d5882015-07-03 15:01:34 +030017
Wei Huang25462f72015-06-19 15:45:05 +020018kvm-intel-y += vmx.o pmu_intel.o
19kvm-amd-y += svm.o pmu_amd.o
Christoph Hellwig284e9b02009-05-18 08:16:14 -040020
21obj-$(CONFIG_KVM) += kvm.o
22obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
23obj-$(CONFIG_KVM_AMD) += kvm-amd.o