From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B188C43458 for ; Tue, 7 Jul 2026 16:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4Vcq1MkvzQbk9zfV5EhPNRi0N88gZnT6KsgF9u39VmY=; b=01jkCVbC1BdkR8IVZW6GogDa7U IER1dvuStPV0PdfDTlw1sdBISSDQ9AKaQJmO/9j1Wo43uVlR5ydRY/8a+r/9Jki4ZAYwhBTrsKTw1 Y3on7DUz3KVH9kTL4/59hdtqEPFC+jsoLwfwgsAWpu4WFnnpT/u6AOmo5C+RWhwSm1TQ0rBl1fqvT tRvMLwsQAVT34ttOtuLate9QagcZ8jMtKiUP5GedWiYfpbF1Od7HnoXOf3dvGOHz1lNoqnJRt4buB F9lhmpMfG+PVehZq4QhmXiab7iic37LqRqxZ8SkgfhjC46X+7ZrZ1SlIaSI/SK5OVMWP01WH9J3LH FaLUdFHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wh98a-0000000FVcf-0xGh; Tue, 07 Jul 2026 16:59:12 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wh98P-0000000FVaW-1Nge for linux-arm-kernel@lists.infradead.org; Tue, 07 Jul 2026 16:59:04 +0000 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 A719D1595; Tue, 7 Jul 2026 09:58:54 -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 ABC683F7B4; Tue, 7 Jul 2026 09:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1783443539; bh=oftr5G3z6oBFV+GyZMslvtqhdQup3zVW7NYWudILDro=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J6v2nAcRCNpFw9tipYNPbCKnfR8iFde0+KzBbP0B3K2mz0ujgYDRy+VwFGktKRv2z X8AGtqBWVpyqZUf4u6DfAHxBW5lfZj+N0eRs5hl4SptX1ZSmjrqSPoGb2LgAo/aLPr cSJFc8xIxc30w+dQMcq1+PliaWcEFwqlAXdZ5TMU= Date: Tue, 7 Jul 2026 17:58:52 +0100 From: Catalin Marinas To: "Aneesh Kumar K.V (Arm)" Cc: iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-coco@lists.linux.dev, Robin Murphy , Marek Szyprowski , Will Deacon , Marc Zyngier , Steven Price , Suzuki K Poulose , Jiri Pirko , Jason Gunthorpe , Mostafa Saleh , Petr Tesarik , Alexey Kardashevskiy , Dan Williams , Xu Yilun , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , x86@kernel.org Subject: Re: [PATCH v7 08/22] coco: arm64: s390: powerpc: Mark secure guests with CC_ATTR_GUEST_MEM_ENCRYPT Message-ID: References: <20260701054926.825925-1-aneesh.kumar@kernel.org> <20260701054926.825925-9-aneesh.kumar@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260701054926.825925-9-aneesh.kumar@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260707_095901_413162_46BC45AE X-CRM114-Status: UNSURE ( 8.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jul 01, 2026 at 11:19:12AM +0530, Aneesh Kumar K.V (Arm) wrote: > arm64 Realms, powerpc secure guests and s390 protected virtualization > guests currently report CC_ATTR_MEM_ENCRYPT, but not > CC_ATTR_GUEST_MEM_ENCRYPT. > > These environments are all secure guest configurations. Their > force_dma_unencrypted() implementations also treat the same secure guest > state as requiring unencrypted DMA. Report CC_ATTR_GUEST_MEM_ENCRYPT for > the same condition so generic confidential-computing code can distinguish > guest memory encryption from host memory encryption instead of relying only > on CC_ATTR_MEM_ENCRYPT. > > Signed-off-by: Aneesh Kumar K.V (Arm) For arm64: Acked-by: Catalin Marinas