1 # SPDX-License-Identifier: GPL-2.0 2 3 ccflags-y += -I $(srctree)/arch/x86/kvm 4 ccflags-$(CONFIG_KVM_WERROR) += -Werror 5 6 include $(srctree)/virt/kvm/Makefile.kvm 7 8 kvm-y += x86.o emulate.o i82 9 i8254.o ioapic.o ir 10 debugfs.o mmu/mmu.o 11 mmu/spte.o 12 13 kvm-$(CONFIG_X86_64) += mmu/tdp_iter.o mmu/tdp 14 kvm-$(CONFIG_KVM_HYPERV) += hyperv.o 15 kvm-$(CONFIG_KVM_XEN) += xen.o 16 kvm-$(CONFIG_KVM_SMM) += smm.o 17 18 kvm-intel-y += vmx/vmx.o vmx/vment 19 vmx/nested.o vmx/po 20 21 kvm-intel-$(CONFIG_X86_SGX_KVM) += vmx/sgx.o 22 kvm-intel-$(CONFIG_KVM_HYPERV) += vmx/hyperv. 23 24 kvm-amd-y += svm/svm.o svm/vment 25 26 kvm-amd-$(CONFIG_KVM_AMD_SEV) += svm/sev.o 27 kvm-amd-$(CONFIG_KVM_HYPERV) += svm/hyperv. 28 29 ifdef CONFIG_HYPERV 30 kvm-y += kvm_onhyperv.o 31 kvm-intel-y += vmx/vmx_onhyperv.o 32 kvm-amd-y += svm/svm_onhyperv.o 33 endif 34 35 obj-$(CONFIG_KVM_X86) += kvm.o 36 obj-$(CONFIG_KVM_INTEL) += kvm-intel.o 37 obj-$(CONFIG_KVM_AMD) += kvm-amd.o 38 39 AFLAGS_svm/vmenter.o := -iquote $(obj) 40 $(obj)/svm/vmenter.o: $(obj)/kvm-asm-offsets.h 41 42 AFLAGS_vmx/vmenter.o := -iquote $(obj) 43 $(obj)/vmx/vmenter.o: $(obj)/kvm-asm-offsets.h 44 45 $(obj)/kvm-asm-offsets.h: $(obj)/kvm-asm-offse 46 $(call filechk,offsets,__KVM_ASM_OFFSE 47 48 targets += kvm-asm-offsets.s 49 clean-files += kvm-asm-offsets.h
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.