blob: 66aa24f5e2dbf2395525497863f926352eb571f9 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Avi Kivityedf88412007-12-16 11:02:48 +02002
Andre Przywaraf0e4b272015-03-26 14:39:31 +00003ccflags-y += -Iarch/x86/kvm
Paolo Bonzini4f337fa2020-02-28 10:42:31 +01004ccflags-$(CONFIG_KVM_WERROR) += -Werror
Avi Kivityedf88412007-12-16 11:02:48 +02005
Josh Poimboeuf7f4b5cd2020-04-20 11:17:37 -05006ifeq ($(CONFIG_FRAME_POINTER),y)
7OBJECT_FILES_NON_STANDARD_vmenter.o := y
8endif
9
Marc Zyngier535cf7b2013-05-14 14:31:02 +010010KVM := ../../../virt/kvm
11
Paolo Bonzini6ef768f2014-11-20 13:45:31 +010012kvm-y += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o \
Alex Williamsonec535002013-10-30 11:02:17 -060013 $(KVM)/eventfd.o $(KVM)/irqchip.o $(KVM)/vfio.o
Marc Zyngier535cf7b2013-05-14 14:31:02 +010014kvm-$(CONFIG_KVM_ASYNC_PF) += $(KVM)/async_pf.o
Christoph Hellwig284e9b02009-05-18 08:16:14 -040015
Paolo Bonzinic50d8ae2019-11-21 10:45:07 +010016kvm-y += x86.o emulate.o i8259.o irq.o lapic.o \
Andrey Smetanine83d5882015-07-03 15:01:34 +030017 i8254.o ioapic.o irq_comm.o cpuid.o pmu.o mtrr.o \
Paolo Bonzini5a9624a2020-10-16 10:29:37 -040018 hyperv.o debugfs.o mmu/mmu.o mmu/page_track.o \
19 mmu/spte.o
Andrey Smetanine83d5882015-07-03 15:01:34 +030020
Xiaoyao Li8888cdd2020-09-23 11:31:11 -070021kvm-intel-y += vmx/vmx.o vmx/vmenter.o vmx/pmu_intel.o vmx/vmcs12.o \
22 vmx/evmcs.o vmx/nested.o vmx/posted_intr.o
Uros Bizjak199cd1d2020-03-30 15:02:13 +020023kvm-amd-y += svm/svm.o svm/vmenter.o svm/pmu.o svm/nested.o svm/avic.o svm/sev.o
Christoph Hellwig284e9b02009-05-18 08:16:14 -040024
25obj-$(CONFIG_KVM) += kvm.o
26obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
27obj-$(CONFIG_KVM_AMD) += kvm-amd.o