From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81B6F3EB818 for ; Thu, 9 Jul 2026 09:11:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783588297; cv=none; b=Ym2RaYKywhups7SrXqew064znUlV2S7oVDVb5IvFmWFBWsqbFYgsgOm0CCIj1KAUamhXqe7sVcinfN8YE6dwqfG6OdBTYEMKnsM89d3a1iKGP9XXqB4Wo8pnb8rjkKKs3lJrT7CzjW55GX5jPjeD5UfnmIKXAdmKDZxVz3iyqec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783588297; c=relaxed/simple; bh=XVa2/2af4zyUk4BXRT0V5f6lx5mVLn9UQAweGjedc54=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SC0uxsJYPUzqcnAgxEWhntpM1Kq+3kN78Pn55D44E9To+5sHlDtGOu+XyJfTGs+uWfTjP2tnvL0S4DlKs6FX8+N/mlRc7a2gQNRgnllRcXlE1tKakYSEWC9Gy1APCZO/vC46D0mvJ7QRcDZNAJA4w91AfMem+CFh1acvBhK7aqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=sUdc9LBc; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="sUdc9LBc" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 962E225E9; Thu, 9 Jul 2026 02:11:31 -0700 (PDT) Received: from arm.com (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D2CBA3F66F; Thu, 9 Jul 2026 02:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1783588295; bh=XVa2/2af4zyUk4BXRT0V5f6lx5mVLn9UQAweGjedc54=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sUdc9LBco2n7+qPRxWRoUgrZz61VLMyz51iyvuUWI1xTHpFkZXAO//2KPnyjIYZ/p QDX/gOqs1dzr1n0DOoJzFd31aI25vbxCYbLZRKXQE3/ZJkWZuxzq8Co7YYwpIl8uhz E7EaYqIiTnBIBmTC2kbQT7SbxfXiuSlnUyNBkm+s= Date: Thu, 9 Jul 2026 10:11:32 +0100 From: Catalin Marinas To: Mostafa Saleh Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, will@kernel.org, rppt@kernel.org, maz@kernel.org, aneesh.kumar@kernel.org Subject: Re: [PATCH 3/3] arm64/coco: Add pKVM as a CC platform Message-ID: References: <20260603110522.3331819-1-smostafa@google.com> <20260603110522.3331819-4-smostafa@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260603110522.3331819-4-smostafa@google.com> On Wed, Jun 03, 2026 at 11:05:22AM +0000, Mostafa Saleh wrote: > pKVM does support memory encryption, expose that to the rest of > the kernel through cc_platform_has() > > At the moment, all devices inside the guest are emulated which > requires its memory to be shared back to the host (decrypted), so > set force_dma_unencrypted() to always return true. > > Although, typically pKVM guests rely on restricted-dma-pools to > bounce traffic, with this change, it is possible to solely rely on > the default SWIOTLB for that (assuming the appropriate size is set > from the command line) > > Signed-off-by: Mostafa Saleh Good to see reamls and pkvm guests aligned, easier to reason about the code paths. Thanks! Reviewed-by: Catalin Marinas