KVM: arm64: pkvm: Implement CONFIG_DEBUG_LIST at Hyp
PATCH v2 1/1 KVM: arm64: pkvm: Implement CONFIG_DEBUG_LIST at Hyp
Currently the check functions are stubbed out at EL2. Implement versions suitable for the constrained EL2 environment.
Signed-off-by Keir Fraser <[email protected]>
--- arch/arm64/kvm/hyp/nvhe/Makefile | 3 +- arch/arm64/kvm/hyp/nvhe/list_debug.c | 54 ++++++++++++++++++++++++++++ arch/arm64/kvm/hyp/nvhe/stub.c | 22 ------------ 3 files changed, 56 insertions(+), 23 deletions(-) create mode 100644 arch/arm64/kvm/hyp/nvhe/list_debug.c delete mode 100644 arch/arm64/kvm/hyp/nvhe/stub.c
arch/arm64/kvm/hyp/nvhe/Makefile +2 -1
@@ -13,10 +13,11 @@ lib-objs := clear_page.o copy_page.o memcpy.o memset.o lib-objs := $(addprefix ../../../lib/, $(lib-objs)) obj-y := timer-sr.o sysreg-sr.o debug-sr.o switch.o tlb.o hyp-init.o host.o \ - hyp-main.o hyp-smp.o psci-relay.o early_alloc.o stub.o page_alloc.o \ + hyp-main.o hyp-smp.o psci-relay.o early_alloc.o page_alloc.o \ cache.o setup.o mm.o mem_protect.o sys_regs.o pkvm.o obj-y += ../vgic-v3-sr.o ../aarch32.o ../vgic-v2-cpuif-proxy.o ../entry.o \ ../fpsimd.o ../hyp-entry.o ../exception.o ../pgtable.o +obj-$(CONFIG_DEBUG_LIST) += list_debug.o obj-y += $(lib-objs) ##
arch/arm64/kvm/hyp/nvhe/list_debug.c new file +54 -0
54 lines not on this page · raw message
arch/arm64/kvm/hyp/nvhe/stub.c deleted +0 -22
@@ -1,22 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* -* Stubs for out-of-line function calls caused by re-using kernel -* infrastructure at EL2. -* -* Copyright (C) 2020 - Google LLC -*/ - -#include <linux/list.h> - -#ifdef CONFIG_DEBUG_LIST -bool __list_add_valid (struct list_head *new,struct list_head *prev, -struct list_head *next) -{ -return true; -} - -bool __list_del_entry_valid (struct list_head *entry) -{ -return true; -} -#endif
Signature · 6 lines
2.35.0.rc2.247.g8bbb082509-goog _______________________________________________ kvmarm mailing list [email protected] https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
Quoted 2 lines · Keir Fraser
Currently the check functions are stubbed out at EL2. Implement versions suitable for the constrained EL2 environment.
Applied to next, thanks!
[1/1] KVM: arm64: pkvm: Implement CONFIG_DEBUG_LIST at Hyp
commit: 4c68d6c0a1757139c791ccf1a781cbd81e35a063
Cheers,
M.
Signature · 7 lines
Without deviation from the norm, progress is not possible. _______________________________________________ kvmarm mailing list [email protected] https://lists.cs.columbia.edu/mailman/listinfo/kvmarm