mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 11:41:00 +07:00
35d2d5d490
For some time now we have been having a lot of shared functionality between the arm and arm64 KVM support in arch/arm, which not only required a horrible inter-arch reference from the Makefile in arch/arm64/kvm, but also created confusion for newcomers to the code base, as was recently seen on the mailing list. Further, it causes confusion for things like cscope, which needs special attention to index specific shared files for arm64 from the arm tree. Move the shared files into virt/kvm/arm and move the trace points along with it. When moving the tracepoints we have to modify the way the vgic creates definitions of the trace points, so we take the chance to include the VGIC tracepoints in its very own special vgic trace.h file. Signed-off-by: Christoffer Dall <cdall@linaro.org>
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
#
|
|
# Makefile for Kernel-based Virtual Machine module
|
|
#
|
|
|
|
plus_virt := $(call as-instr,.arch_extension virt,+virt)
|
|
ifeq ($(plus_virt),+virt)
|
|
plus_virt_def := -DREQUIRES_VIRT=1
|
|
endif
|
|
|
|
ccflags-y += -Iarch/arm/kvm -Ivirt/kvm/arm/vgic
|
|
CFLAGS_arm.o := -I. $(plus_virt_def)
|
|
CFLAGS_mmu.o := -I.
|
|
|
|
AFLAGS_init.o := -Wa,-march=armv7-a$(plus_virt)
|
|
AFLAGS_interrupts.o := -Wa,-march=armv7-a$(plus_virt)
|
|
|
|
KVM := ../../../virt/kvm
|
|
kvm-arm-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o $(KVM)/vfio.o
|
|
|
|
obj-$(CONFIG_KVM_ARM_HOST) += hyp/
|
|
|
|
obj-y += kvm-arm.o init.o interrupts.o
|
|
obj-y += handle_exit.o guest.o emulate.o reset.o
|
|
obj-y += coproc.o coproc_a15.o coproc_a7.o vgic-v3-coproc.o
|
|
obj-y += $(KVM)/arm/arm.o $(KVM)/arm/mmu.o $(KVM)/arm/mmio.o
|
|
obj-y += $(KVM)/arm/psci.o $(KVM)/arm/perf.o
|
|
obj-y += $(KVM)/arm/aarch32.o
|
|
|
|
obj-y += $(KVM)/arm/vgic/vgic.o
|
|
obj-y += $(KVM)/arm/vgic/vgic-init.o
|
|
obj-y += $(KVM)/arm/vgic/vgic-irqfd.o
|
|
obj-y += $(KVM)/arm/vgic/vgic-v2.o
|
|
obj-y += $(KVM)/arm/vgic/vgic-v3.o
|
|
obj-y += $(KVM)/arm/vgic/vgic-mmio.o
|
|
obj-y += $(KVM)/arm/vgic/vgic-mmio-v2.o
|
|
obj-y += $(KVM)/arm/vgic/vgic-mmio-v3.o
|
|
obj-y += $(KVM)/arm/vgic/vgic-kvm-device.o
|
|
obj-y += $(KVM)/arm/vgic/vgic-its.o
|
|
obj-y += $(KVM)/arm/vgic/vgic-debug.o
|
|
obj-y += $(KVM)/irqchip.o
|
|
obj-y += $(KVM)/arm/arch_timer.o
|