[PATCH v2 2/5] KVM: arm64: Use HYP_REASON_ERET_HOST on trace_hyp_exit from PSCI_CPU_ON

Vincent Donnefort vdonnefort at google.com
Wed Nov 4 06:06:09 PST 2026


The hyp_exit on PSCI_CPU_ON logs PSCI as a reason but really we eret to
the host. Use HYP_REASON_ERET_HOST instead.

Signed-off-by: Vincent Donnefort <vdonnefort at google.com>
---
 arch/arm64/kvm/hyp/nvhe/psci-relay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kvm/hyp/nvhe/psci-relay.c b/arch/arm64/kvm/hyp/nvhe/psci-relay.c
index e20db999e328..48228991a7ba 100644
--- a/arch/arm64/kvm/hyp/nvhe/psci-relay.c
+++ b/arch/arm64/kvm/hyp/nvhe/psci-relay.c
@@ -213,7 +213,7 @@ static void __noreturn __kvm_host_psci_cpu_entry(unsigned long pc, unsigned long
 	write_sysreg_el1(INIT_SCTLR_EL1_MMU_OFF, SYS_SCTLR);
 	write_sysreg(INIT_PSTATE_EL1, SPSR_EL2);
 
-	trace_hyp_exit(host_ctxt, HYP_REASON_PSCI);
+	trace_hyp_exit(host_ctxt, HYP_REASON_ERET_HOST);
 	__host_enter(host_ctxt);
 }
 
-- 
2.56.0.455.g6c5a503b38-goog




More information about the linux-arm-kernel mailing list