mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
fe5db27d36
The TDP MMU offers an alternative mode of operation to the x86 shadow paging based MMU, optimized for running an L1 guest with TDP. The TDP MMU will require new fields that need to be initialized and torn down. Add hooks into the existing KVM MMU initialization process to do that initialization / cleanup. Currently the initialization and cleanup fucntions do not do very much, however more operations will be added in future patches. Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell machine. This series introduced no new failures. This series can be viewed in Gerrit at: https://linux-review.googlesource.com/c/virt/kvm/kvm/+/2538 Signed-off-by: Ben Gardon <bgardon@google.com> Message-Id: <20201014182700.2888246-4-bgardon@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
28 lines
881 B
Makefile
28 lines
881 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
ccflags-y += -Iarch/x86/kvm
|
|
ccflags-$(CONFIG_KVM_WERROR) += -Werror
|
|
|
|
ifeq ($(CONFIG_FRAME_POINTER),y)
|
|
OBJECT_FILES_NON_STANDARD_vmenter.o := y
|
|
endif
|
|
|
|
KVM := ../../../virt/kvm
|
|
|
|
kvm-y += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o \
|
|
$(KVM)/eventfd.o $(KVM)/irqchip.o $(KVM)/vfio.o
|
|
kvm-$(CONFIG_KVM_ASYNC_PF) += $(KVM)/async_pf.o
|
|
|
|
kvm-y += x86.o emulate.o i8259.o irq.o lapic.o \
|
|
i8254.o ioapic.o irq_comm.o cpuid.o pmu.o mtrr.o \
|
|
hyperv.o debugfs.o mmu/mmu.o mmu/page_track.o \
|
|
mmu/spte.o mmu/tdp_iter.o mmu/tdp_mmu.o
|
|
|
|
kvm-intel-y += vmx/vmx.o vmx/vmenter.o vmx/pmu_intel.o vmx/vmcs12.o \
|
|
vmx/evmcs.o vmx/nested.o vmx/posted_intr.o
|
|
kvm-amd-y += svm/svm.o svm/vmenter.o svm/pmu.o svm/nested.o svm/avic.o svm/sev.o
|
|
|
|
obj-$(CONFIG_KVM) += kvm.o
|
|
obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
|
|
obj-$(CONFIG_KVM_AMD) += kvm-amd.o
|