Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Avi Kivity | edf8841 | 2007-12-16 11:02:48 +0200 | [diff] [blame] | 2 | |
Andre Przywara | f0e4b27 | 2015-03-26 14:39:31 +0000 | [diff] [blame] | 3 | ccflags-y += -Iarch/x86/kvm |
Paolo Bonzini | 4f337fa | 2020-02-28 10:42:31 +0100 | [diff] [blame] | 4 | ccflags-$(CONFIG_KVM_WERROR) += -Werror |
Avi Kivity | edf8841 | 2007-12-16 11:02:48 +0200 | [diff] [blame] | 5 | |
Josh Poimboeuf | 7f4b5cd | 2020-04-20 11:17:37 -0500 | [diff] [blame] | 6 | ifeq ($(CONFIG_FRAME_POINTER),y) |
| 7 | OBJECT_FILES_NON_STANDARD_vmenter.o := y |
| 8 | endif |
| 9 | |
Marc Zyngier | 535cf7b | 2013-05-14 14:31:02 +0100 | [diff] [blame] | 10 | KVM := ../../../virt/kvm |
| 11 | |
Paolo Bonzini | 6ef768f | 2014-11-20 13:45:31 +0100 | [diff] [blame] | 12 | kvm-y += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o \ |
Alex Williamson | ec53500 | 2013-10-30 11:02:17 -0600 | [diff] [blame] | 13 | $(KVM)/eventfd.o $(KVM)/irqchip.o $(KVM)/vfio.o |
Marc Zyngier | 535cf7b | 2013-05-14 14:31:02 +0100 | [diff] [blame] | 14 | kvm-$(CONFIG_KVM_ASYNC_PF) += $(KVM)/async_pf.o |
Christoph Hellwig | 284e9b0 | 2009-05-18 08:16:14 -0400 | [diff] [blame] | 15 | |
Paolo Bonzini | c50d8ae | 2019-11-21 10:45:07 +0100 | [diff] [blame] | 16 | kvm-y += x86.o emulate.o i8259.o irq.o lapic.o \ |
Andrey Smetanin | e83d588 | 2015-07-03 15:01:34 +0300 | [diff] [blame] | 17 | i8254.o ioapic.o irq_comm.o cpuid.o pmu.o mtrr.o \ |
Paolo Bonzini | 5a9624a | 2020-10-16 10:29:37 -0400 | [diff] [blame^] | 18 | hyperv.o debugfs.o mmu/mmu.o mmu/page_track.o \ |
| 19 | mmu/spte.o |
Andrey Smetanin | e83d588 | 2015-07-03 15:01:34 +0300 | [diff] [blame] | 20 | |
Xiaoyao Li | 8888cdd | 2020-09-23 11:31:11 -0700 | [diff] [blame] | 21 | kvm-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 Bizjak | 199cd1d | 2020-03-30 15:02:13 +0200 | [diff] [blame] | 23 | kvm-amd-y += svm/svm.o svm/vmenter.o svm/pmu.o svm/nested.o svm/avic.o svm/sev.o |
Christoph Hellwig | 284e9b0 | 2009-05-18 08:16:14 -0400 | [diff] [blame] | 24 | |
| 25 | obj-$(CONFIG_KVM) += kvm.o |
| 26 | obj-$(CONFIG_KVM_INTEL) += kvm-intel.o |
| 27 | obj-$(CONFIG_KVM_AMD) += kvm-amd.o |