FROMLIST: KVM: arm64: Stub CONFIG_DEBUG_LIST at Hyp
In order to use the kernel list library at EL2, introduce stubs for the CONFIG_DEBUG_LIST out-of-lines calls. Acked-by: Will Deacon <will@kernel.org> Signed-off-by: Quentin Perret <qperret@google.com> Link: https://lore.kernel.org/r/20210315143536.214621-12-qperret@google.com Bug: 178098380 Change-Id: I41c92ac2b350593cd7ac2ac4017b7695d0d042c6
This commit is contained in:
@@ -13,7 +13,7 @@ lib-objs := clear_page.o copy_page.o memcpy.o memset.o
|
|||||||
lib-objs := $(addprefix ../../../lib/, $(lib-objs))
|
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 \
|
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
|
hyp-main.o hyp-smp.o psci-relay.o early_alloc.o stub.o
|
||||||
obj-y += ../vgic-v3-sr.o ../aarch32.o ../vgic-v2-cpuif-proxy.o ../entry.o \
|
obj-y += ../vgic-v3-sr.o ../aarch32.o ../vgic-v2-cpuif-proxy.o ../entry.o \
|
||||||
../fpsimd.o ../hyp-entry.o ../exception.o
|
../fpsimd.o ../hyp-entry.o ../exception.o
|
||||||
obj-y += $(lib-objs)
|
obj-y += $(lib-objs)
|
||||||
|
22
arch/arm64/kvm/hyp/nvhe/stub.c
Normal file
22
arch/arm64/kvm/hyp/nvhe/stub.c
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
// 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
|
Reference in New Issue
Block a user