From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD8104ADDA0; Tue, 9 Jun 2026 18:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781028653; cv=none; b=GOJkUsTLV5aLnffvEZac9kgScqI1VmaRxgCCShgWIYdzYybuaebnWC5NVQHQ4WE9ocXIYniMfLyysP8s8yILFaTjkO5QPkxrlmw1zUUEO+sXzko0gfZS0M8tjbGGPCG/TU0+g7v3KneygZPC/mUczt+VR2S2o1diEPiqA2/SvKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781028653; c=relaxed/simple; bh=gIh919Vx/Fx41Cn+cspNU/hggATudRh9alfaL2s2xP0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gOTMyQwoF68VM1u0ez+ccpYYdxSNB93AACo05AuDLFc8nbJw+5I9/YhOUQqxBxhy+cqVCpkiBgYLN+rAoW/Z6o8+JKYbkW6VNXe3o3AFhPXqwo8qzlrNQh107SK6rQVfyfimiTsHLoAiBYpEn5KIm3E0OpxSfJ2wz8EFcUck+6g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=kY1SAuYM; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="kY1SAuYM" Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id C725120B716E; Tue, 9 Jun 2026 11:10:33 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C725120B716E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1781028633; bh=A6U5y8R6Wx1WxLc5abqrL4wjg/PnqLuzex2uy4KtmCI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kY1SAuYMcQFt3y6h/ohfDsmhFTn3ZYVzESqBhMomG4GWFFbINpyWic4uaVXjVRCq9 /O4uD9tyawCs6CHlEt11mZLZbidpvUMHcY5Z1bf+51ReUsiQljAYnbHDyQO+CmZr0j 1Cs4ptudVI1gg1OLXM/GtBWBLlOiAcFKQyZQYWrQ= From: Kameron Carr To: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, longli@microsoft.com Cc: catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, lpieralisi@kernel.org, sudeep.holla@kernel.org, arnd@arndb.de, thuth@redhat.com, linux-hyperv@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, mhklinux@outlook.com Subject: [RFC PATCH 6/6] arm64: hyperv: Implement hv_is_isolation_supported() for CCA Realms Date: Tue, 9 Jun 2026 11:10:30 -0700 Message-ID: <20260609181030.2378391-7-kameroncarr@linux.microsoft.com> X-Mailer: git-send-email 2.43.7 In-Reply-To: <20260609181030.2378391-1-kameroncarr@linux.microsoft.com> References: <20260609181030.2378391-1-kameroncarr@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Kameron Carr --- 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 b595b2b9bdbbb..b9b1c2f8e3ec7 100644 --- a/arch/arm64/hyperv/mshyperv.c +++ b/arch/arm64/hyperv/mshyperv.c @@ -213,3 +213,8 @@ bool hv_isolation_type_cca(void) { return is_realm_world(); } + +bool hv_is_isolation_supported(void) +{ + return is_realm_world(); +} -- 2.45.4