]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Expose self-hosted debug regs as RAZ/WI for protected guests
authorFuad Tabba <tabba@google.com>
Mon, 30 Mar 2026 14:48:07 +0000 (15:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 30 Mar 2026 15:58:07 +0000 (16:58 +0100)
commit3a81a814437d187ac893b3d937985d6503ff3841
treef8f6441f2d5c2857b7c4907b5402f706ed1ff82d
parentbe3473c338d23c87485d7728818005f32b58009f
KVM: arm64: Expose self-hosted debug regs as RAZ/WI for protected guests

Debug and trace are not currently supported for protected guests, so
trap accesses to the related registers and emulate them as RAZ/WI for
now. Although this isn't strictly compatible with the architecture, it's
sufficient for Linux guests and means that debug support can be added
later on.

Tested-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20260330144841.26181-7-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/sys_regs.c