ANDROID: KVM: arm64: Disallow #include trace.h for pKVM.
pKVM modules must use #include "nvhe/trace.h" instead of a simple "trace.h". This is clearer. Fix pkvm-smc to use nvhe/trace.h. Bug: 416603216 Bug: 357781595 Change-Id: Iccb1c182dc98dc27f8b462bad572e2544f44dce1 Signed-off-by: HONG Yifan <elsk@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
f503b8a51a
commit
56ad021f7a
@@ -5,9 +5,6 @@ $(obj)/hyp.lds: arch/arm64/kvm/hyp/nvhe/module.lds.S FORCE
|
||||
|
||||
include $(srctree)/arch/arm64/kvm/hyp/nvhe/Makefile.nvhe
|
||||
|
||||
# Deprecated; subject to removal.
|
||||
ccflags-y += -I$(srctree)/arch/arm64/kvm/hyp/include/module/nvhe
|
||||
|
||||
# LINT.IfChange(includes)
|
||||
ccflags-y += -I$(srctree)/arch/arm64/kvm/hyp/include/module
|
||||
# LINT.ThenChange(/BUILD.bazel:pkvm_includes)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#define __PKVM_SMC_FILTER_HYPEVENTS_H_
|
||||
|
||||
#ifdef __KVM_NVHE_HYPERVISOR__
|
||||
#include <trace.h>
|
||||
#include <nvhe/trace.h>
|
||||
#endif
|
||||
|
||||
HYP_EVENT(filtered_smc,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "events.h"
|
||||
#define HYP_EVENT_FILE ../../../../drivers/misc/pkvm-smc/pkvm/events.h
|
||||
#include <define_events.h>
|
||||
#include <nvhe/define_events.h>
|
||||
|
||||
const struct pkvm_module_ops *pkvm_ops;
|
||||
bool permissive;
|
||||
|
||||
Reference in New Issue
Block a user