mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 22:44:27 +08:00
a8e190cdae
Provide a hypervisor implementation of the ARM architected TRNG firmware interface described in ARM spec DEN0098. All function IDs are implemented, including both 32-bit and 64-bit versions of the TRNG_RND service, which is the centerpiece of the API. The API is backed by the kernel's entropy pool only, to avoid guests draining more precious direct entropy sources. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> [Andre: minor fixes, drop arch_get_random() usage] Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20210106103453.152275-6-andre.przywara@arm.com
28 lines
784 B
Makefile
28 lines
784 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for Kernel-based Virtual Machine module
|
|
#
|
|
|
|
ccflags-y += -I $(srctree)/$(src)
|
|
|
|
KVM=../../../virt/kvm
|
|
|
|
obj-$(CONFIG_KVM) += kvm.o
|
|
obj-$(CONFIG_KVM) += hyp/
|
|
|
|
kvm-y := $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o \
|
|
$(KVM)/vfio.o $(KVM)/irqchip.o \
|
|
arm.o mmu.o mmio.o psci.o perf.o hypercalls.o pvtime.o \
|
|
inject_fault.o va_layout.o handle_exit.o \
|
|
guest.o debug.o reset.o sys_regs.o \
|
|
vgic-sys-reg-v3.o fpsimd.o pmu.o \
|
|
arch_timer.o trng.o\
|
|
vgic/vgic.o vgic/vgic-init.o \
|
|
vgic/vgic-irqfd.o vgic/vgic-v2.o \
|
|
vgic/vgic-v3.o vgic/vgic-v4.o \
|
|
vgic/vgic-mmio.o vgic/vgic-mmio-v2.o \
|
|
vgic/vgic-mmio-v3.o vgic/vgic-kvm-device.o \
|
|
vgic/vgic-its.o vgic/vgic-debug.o
|
|
|
|
kvm-$(CONFIG_HW_PERF_EVENTS) += pmu-emul.o
|