RE: [PATCH v6 6/6] arm64: hyperv: Implement hv_is_isolation_supported() for CCA Realms

From
Michael Kelley <hidden>
Date
2026-11-11 18:01:17
Also in
linux-arch, linux-arm-kernel, lkml
Reply to
Kameron Carr, 2026-10-31
From: Kameron Carr <redacted> Sent: Friday, October 30, 2026 5:14 PM
Provide an arm64 implementation of hv_is_isolation_supported() that
overrides the __weak default in drivers/hv/hv_common.c.

The implementation deliberately does not depend on
hv_is_hyperv_initialized() because hv_common_init() consults
hv_is_isolation_supported() before hyperv_initialized is set.
Quibble: What's the genesis of this statement about
hv_is_hyperv_initialized()? On the x86 side, hv_is_isolation_supported()
doesn't depend on hv_is_hyperv_initialized(), so I don't think you
are making a distinction vs. what x86 does. The statement seems
like it might be a leftover from an early version of this patch set.

Michael
quoted hunk ↗ jump to hunk
Reviewed-by: Michael Kelley <redacted>
Signed-off-by: Kameron Carr <redacted>
---
 arch/arm64/hyperv/mshyperv.c | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/arch/arm64/hyperv/mshyperv.c b/arch/arm64/hyperv/mshyperv.c
index da6c3aa0..8a2c446 100644
--- a/arch/arm64/hyperv/mshyperv.c
+++ b/arch/arm64/hyperv/mshyperv.c
@@ -187,3 +187,8 @@ bool hv_isolation_type_cca(void)
 {
 	return is_realm_world();
 }
+
+bool hv_is_isolation_supported(void)
+{
+	return is_realm_world();
+}
--
2.45.4
  
Thread (27 messages) 27 messages, 6 authors, last reply 20h ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help