On Thu, 19 Oct 2023 17:55:00 +0100,
James Clark [off-list ref] wrote:
quoted hunk ↗ jump to hunk
pmscr_el1 and trfcr_el1 are currently special cased in the
host_debug_state struct, but they're just registers after all so give
them entries in the sysreg array and refer to them through the host
context.
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: James Clark <redacted>
---
arch/arm64/include/asm/kvm_host.h | 6 ++--
arch/arm64/include/asm/kvm_hyp.h | 4 +--
arch/arm64/kvm/hyp/nvhe/debug-sr.c | 44 +++++++++++++++---------------
arch/arm64/kvm/hyp/nvhe/switch.c | 4 +--
4 files changed, 28 insertions(+), 30 deletions(-)
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
index 4a966c0d7373..7c82927ddaf2 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -437,6 +437,8 @@ enum vcpu_sysreg {
CNTHP_CVAL_EL2,
CNTHV_CTL_EL2,
CNTHV_CVAL_EL2,
+ PMSCR_EL1, /* Statistical profiling extension */
+ TRFCR_EL1, /* Self-hosted trace filters */
Why this move? Are you also adding guest support for SPE?
Until you do, I don't see the need to pollute the guest's sysreg
namespace.
M.
--
Without deviation from the norm, progress is not possible.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel