The RMM provides emulation of a VGIC to the realm guest but delegatesReviewed-by: Gavin Shan <gshan@xxxxxxxxxx>
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(-)