Re: [PATCH v8 34/43] arm64: RME: Propagate number of breakpoints and watchpoints to userspace

From: Gavin Shan
Date: Wed Apr 30 2025 - 23:41:07 EST


On 4/16/25 11:41 PM, Steven Price wrote:
From: Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx>

The RMM describes the maximum number of BPs/WPs available to the guest
in the Feature Register 0. Propagate those numbers into ID_AA64DFR0_EL1,
which is visible to userspace. A VMM needs this information in order to
set up realm parameters.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx>
Signed-off-by: Steven Price <steven.price@xxxxxxx>
---
arch/arm64/include/asm/kvm_rme.h | 2 ++
arch/arm64/kvm/rme.c | 22 ++++++++++++++++++++++
arch/arm64/kvm/sys_regs.c | 2 +-
3 files changed, 25 insertions(+), 1 deletion(-)


Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>