Subject: [PATCH v4 0/3] KVM: arm64: Fix SPE and TRBE nVHE world switch

From: Will Deacon <[email-masked]>
Date: Fri, 27 Mar 2026 13:00:43 +0000

Hi all,

I got the Sashiko treatment on v3, so here's a quick respin to address
the BRBE thinko it found in the last patch.

Previous versions of the series are available at:

  v1: https://lore.kernel.org/r/[email-masked]
  v2: https://lore.kernel.org/r/[email-masked]
  v3: https://lore.kernel.org/r/[email-masked]

Changes since v3 include:

  * Retain zeroing of *brbcr_el1 when saving BRBE state
  * Dropped R-b / T-b tags on the BRBE patch

Cheers,

Will

Cc: Marc Zyngier <[email-masked]>
Cc: Oliver Upton <[email-masked]>
Cc: James Clark <[email-masked]>
Cc: Leo Yan <[email-masked]>
Cc: Suzuki K Poulose <[email-masked]>
Cc: Fuad Tabba <[email-masked]>
Cc: Alexandru Elisei <[email-masked]>
Cc: Yabin Cui <[email-masked]>

--->8

Will Deacon (3):
  KVM: arm64: Disable TRBE Trace Buffer Unit when running in guest
    context
  KVM: arm64: Disable SPE Profiling Buffer when running in guest context
  KVM: arm64: Don't pass host_debug_state to BRBE world-switch routines

 arch/arm64/include/asm/kvm_host.h  |   2 +
 arch/arm64/kvm/hyp/nvhe/debug-sr.c | 116 +++++++++++++++++++++++------
 arch/arm64/kvm/hyp/nvhe/switch.c   |   2 +-
 3 files changed, 95 insertions(+), 25 deletions(-)

-- 
2.53.0.1018.g2bb0e51243-goog