Re: [PATCH v9 13/43] arm64: RME: Support for the VGIC in realms

From: Gavin Shan
Date: Tue Jul 01 2025 - 02:41:54 EST


On 6/11/25 8:48 PM, Steven Price wrote:
The RMM provides emulation of a VGIC to the realm guest but delegates
much of the handling to the host. Implement support in KVM for
saving/restoring state to/from the REC structure.

Signed-off-by: Steven Price <steven.price@xxxxxxx>
---
Changes from v8:
* Propagate gicv3_hcr to from the RMM.
Changes from v5:
* Handle RMM providing fewer GIC LRs than the hardware supports.
---
arch/arm64/include/asm/kvm_rme.h | 1 +
arch/arm64/kvm/arm.c | 16 +++++++++--
arch/arm64/kvm/rme.c | 5 ++++
arch/arm64/kvm/vgic/vgic-init.c | 2 +-
arch/arm64/kvm/vgic/vgic-v3.c | 6 +++-
arch/arm64/kvm/vgic/vgic.c | 49 ++++++++++++++++++++++++++++++--
6 files changed, 72 insertions(+), 7 deletions(-)

Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>