mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
The hyp_enter and hyp_exit events are logged by the hypervisor any time it is entered and exited. Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Link: https://patch.msgid.link/20260309162516.2623589-29-vdonnefort@google.com Signed-off-by: Marc Zyngier <maz@kernel.org>
24 lines
621 B
C
24 lines
621 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef __ARM64_KVM_HYP_NVHE_ARM_SMCCC_H__
|
|
#define __ARM64_KVM_HYP_NVHE_ARM_SMCCC_H__
|
|
|
|
#include <asm/kvm_hypevents.h>
|
|
|
|
#include <linux/arm-smccc.h>
|
|
|
|
#define hyp_smccc_1_1_smc(...) \
|
|
do { \
|
|
trace_hyp_exit(NULL, HYP_REASON_SMC); \
|
|
arm_smccc_1_1_smc(__VA_ARGS__); \
|
|
trace_hyp_enter(NULL, HYP_REASON_SMC); \
|
|
} while (0)
|
|
|
|
#define hyp_smccc_1_2_smc(...) \
|
|
do { \
|
|
trace_hyp_exit(NULL, HYP_REASON_SMC); \
|
|
arm_smccc_1_2_smc(__VA_ARGS__); \
|
|
trace_hyp_enter(NULL, HYP_REASON_SMC); \
|
|
} while (0)
|
|
|
|
#endif /* __ARM64_KVM_HYP_NVHE_ARM_SMCCC_H__ */
|