[PATCH v16 45/45] KVM: arm64: CCA: Enable realms to be created

From: Steven Price

Date: Mon Aug 03 2026 - 11:30:01 EST


All the pieces are now in place, so enable kvm_rmi_is_available when the
RMM is detected.

Signed-off-by: Steven Price <steven.price@xxxxxxx>
---
arch/arm64/kvm/rmi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/kvm/rmi.c b/arch/arm64/kvm/rmi.c
index 0f66a0e970cd..c242dfc2c7a6 100644
--- a/arch/arm64/kvm/rmi.c
+++ b/arch/arm64/kvm/rmi.c
@@ -1556,5 +1556,6 @@ void kvm_init_rmi(void)
if (rmm_check_features())
return;

- /* Future patch will enable static branch kvm_rmi_is_available */
+ kvm_info("Realm guests supported\n");
+ static_branch_enable(&kvm_rmi_is_available);
}
--
2.43.0