mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
55009c6ed2
We currently intertwine the KVM PSCI implementation with the general dispatch of hypercall handling, which makes perfect sense because PSCI is the only category of hypercalls we support. However, as we are about to support additional hypercalls, factor out this functionality into a separate hypercall handler file. Signed-off-by: Christoffer Dall <christoffer.dall@arm.com> [steven.price@arm.com: rebased] Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Steven Price <steven.price@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
44 lines
1.4 KiB
Makefile
44 lines
1.4 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# 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
|
|
|
|
KVM := ../../../virt/kvm
|
|
|
|
ccflags-y += -I $(srctree)/$(src) -I $(srctree)/virt/kvm/arm/vgic
|
|
CFLAGS_$(KVM)/arm/arm.o := $(plus_virt_def)
|
|
|
|
AFLAGS_init.o := -Wa,-march=armv7-a$(plus_virt)
|
|
AFLAGS_interrupts.o := -Wa,-march=armv7-a$(plus_virt)
|
|
|
|
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 $(KVM)/arm/hypercalls.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-v4.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
|