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 CB22FD0D78F for ; Fri, 11 Oct 2024 13:35:15 +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=+rnvHR/QZpTtJ5STFFivIpbYqitYcEkJegn5JkivD7g=; b=N0t3IbdRmV0YGAtNGb+KdtStQD hsSeDUzsWpY8SfBxDPjtbio9exWhwHcZfrOXelIYFcyzNnTo94rooOMWN5pU7wyelQ7GQA4hMd79b +b76pg713D5tTaKgSaTSdFpZ3wkO/s3GDPPVgJYQBR0qTFHIQ5oOT4dT9/no9q6eNEfjq87aqokY9 0IhqPkEefxK6Fa+bd/8r4uBxs0UpI09cRjjs8nUSu9GENaC9GLnfwmgMn/FRnKzFyJU0wn1ZSdx0u 5vp+QWrEODTh8QCQ+hms6woDvwOcWbDRCrjAVIHlgu8MDBBPXdTaCXdmAOX07bw//CUpni0QWDLz4 MdzSrD4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szFnM-0000000GT6E-0uqN; Fri, 11 Oct 2024 13:35:04 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szFZE-0000000GQbJ-0MNm for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2024 13:20:29 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 9FFD5A40EAA; Fri, 11 Oct 2024 13:20:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B1B1C4CEC3; Fri, 11 Oct 2024 13:20:23 +0000 (UTC) Date: Fri, 11 Oct 2024 14:20:21 +0100 From: Catalin Marinas To: Steven Price Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, Suzuki K Poulose , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , Fuad Tabba , linux-coco@lists.linux.dev, Ganapatrao Kulkarni , Gavin Shan , Shanker Donthineni , Alper Gun , "Aneesh Kumar K . V" Subject: Re: [PATCH v6 05/11] arm64: rsi: Map unprotected MMIO as decrypted Message-ID: References: <20241004144307.66199-1-steven.price@arm.com> <20241004144307.66199-6-steven.price@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241004144307.66199-6-steven.price@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241011_062028_210551_73905AFC X-CRM114-Status: UNSURE ( 6.81 ) 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 Fri, Oct 04, 2024 at 03:43:00PM +0100, Steven Price wrote: > From: Suzuki K Poulose > > Instead of marking every MMIO as shared, check if the given region is > "Protected" and apply the permissions accordingly. > > Signed-off-by: Suzuki K Poulose > Signed-off-by: Steven Price Reviewed-by: Catalin Marinas