From fc580eb7bdb68e0f0201490079897adef1a3a40a Mon Sep 17 00:00:00 2001 From: Vishnu Mandalapu Date: Mon, 17 Oct 2022 17:06:51 -0700 Subject: [PATCH] Server page: eventlib: hvrtos: process - Add new array for all trace buffers in the system. Jira HYP-11997 Jira HYP-12629 Change-Id: Ic53fbeb2efecf5792a33ec3814b4d955991128b9 Signed-off-by: Vishnu Mandalapu Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2793634 Reviewed-by: svcacv Reviewed-by: Akash Kulkarni Reviewed-by: Suresh Venkatachalam Reviewed-by: Bo Yan GVS: Gerrit_Virtual_Submit --- include/soc/tegra/virt/syscalls.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/soc/tegra/virt/syscalls.h b/include/soc/tegra/virt/syscalls.h index eff2bc14..598c905c 100644 --- a/include/soc/tegra/virt/syscalls.h +++ b/include/soc/tegra/virt/syscalls.h @@ -129,6 +129,16 @@ struct trapped_access { uint32_t guest_id; }; +/* Structure to store the IPA, Length and Name. */ +struct trace_buf { +/* @brief IPA of trace buffer region. */ + uint64_t ipa; +/* @brief Length of trace buffer region. */ + uint64_t size; +/* @brief Name */ + char name[32]; +}; + struct hyp_server_page { /* guest reset protocol */ uint32_t guest_reset_virq; @@ -157,6 +167,10 @@ struct hyp_server_page { /* all vm mappings ipa */ uint64_t mappings_ipa; + + /* IPA, Length and Name for trace buffer region. */ + struct trace_buf trace_buffs[2*NGUESTS_MAX]; + }; /* For backwards compatibility, alias the old name for hyp_server_name. */