1 # SPDX-License-Identifier: GPL-2.0
3 ccflags-y
+= -Iarch
/x86
/kvm
5 KVM
:= ..
/..
/..
/virt
/kvm
7 kvm-y
+= $(KVM
)/kvm_main.o
$(KVM
)/coalesced_mmio.o \
8 $(KVM
)/eventfd.o
$(KVM
)/irqchip.o
$(KVM
)/vfio.o
9 kvm-
$(CONFIG_KVM_ASYNC_PF
) += $(KVM
)/async_pf.o
11 kvm-y
+= x86.o mmu.o emulate.o i8259.o irq.o lapic.o \
12 i8254.o ioapic.o irq_comm.o cpuid.o pmu.o mtrr.o \
13 hyperv.o page_track.o debugfs.o
15 kvm-intel-y
+= vmx
/vmx.o vmx
/vmenter.o vmx
/pmu_intel.o vmx
/vmcs12.o vmx
/evmcs.o vmx
/nested.o
16 kvm-amd-y
+= svm.o pmu_amd.o
18 obj-
$(CONFIG_KVM
) += kvm.o
19 obj-
$(CONFIG_KVM_INTEL
) += kvm-intel.o
20 obj-
$(CONFIG_KVM_AMD
) += kvm-amd.o