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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0AE8C61DA4 for ; Wed, 22 Feb 2023 18:36:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232401AbjBVSgv (ORCPT ); Wed, 22 Feb 2023 13:36:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbjBVSgt (ORCPT ); Wed, 22 Feb 2023 13:36:49 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5602F3E630 for ; Wed, 22 Feb 2023 10:36:48 -0800 (PST) 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 CB853FEC; Wed, 22 Feb 2023 10:37:30 -0800 (PST) Received: from [10.57.15.137] (unknown [10.57.15.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EC2C33F587; Wed, 22 Feb 2023 10:36:44 -0800 (PST) Message-ID: Date: Wed, 22 Feb 2023 18:36:19 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 03/10] KVM: arm64: switch HCRX_EL2 between host and guest Content-Language: en-US To: Mark Brown Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Mark Rutland , Luis Machado , Vladimir Murzin , linux-kernel@vger.kernel.org References: <20230216160012.272345-1-kristina.martsenko@arm.com> <20230216160012.272345-4-kristina.martsenko@arm.com> From: Kristina Martsenko In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/02/2023 16:20, Mark Brown wrote: > On Thu, Feb 16, 2023 at 04:00:05PM +0000, Kristina Martsenko wrote: > >> After this change, SMPME is no longer set for guests, which should have >> no effect as SME is currently disabled for guests. > > SMPME is mainly set for the benefit of any future guests, it is > used to turn off SME priorities for guests. While it's true that > we don't have any guests support yet it's there as safety to > ensure we don't forget to enable it later on or something > otherwise goes wrong. We don't need priority mapping on the host > since we don't have any priority mapping support at all, and it's > difficult to see a reason why we would want to remap our own > priorities in the host. That makes sense. I'll fix this in v2 so that priority mapping is enabled for guests and disabled for the host. Thanks, Kristina 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 6BF66C636D6 for ; Wed, 22 Feb 2023 18:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4Gck7myxG7nFtBorDcItfL2Y8E38WaCsPlRqfObeQuw=; b=11YafWmkdxEpS2 RxGiZ4ip9wJECys9+NkzM+X93p7xVWSfNdM9R6lRPS5+jPudF/n2wVMvwSKUbsSBMqhP9NVyyxsfO f6LrVeFxvFR1/QbE0+My8GTV9apqvTx84eXrg18iMRUyUxEKFhR/1Ti9PgF36dqKQgbxDxSSOTsUW fudoFwAZZ3FHLzjx+c9R3NmQJDBO2PN3X2vFn7savsYJG/lYygefKWpqTFk4P9SpzmQLgFv3rYJej aprIgQxgFC4P73SXcJrb9/1IFTzaQ4hS2ugO7COc30OjvFi61CwvHZYv88WshUFoKijZYFKfJFTa1 hm2j5HGnO/Yjfg/KTGYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pUtz7-00DT8c-TD; Wed, 22 Feb 2023 18:36:57 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pUtz4-00DT75-CW for linux-arm-kernel@lists.infradead.org; Wed, 22 Feb 2023 18:36:56 +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 CB853FEC; Wed, 22 Feb 2023 10:37:30 -0800 (PST) Received: from [10.57.15.137] (unknown [10.57.15.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EC2C33F587; Wed, 22 Feb 2023 10:36:44 -0800 (PST) Message-ID: Date: Wed, 22 Feb 2023 18:36:19 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 03/10] KVM: arm64: switch HCRX_EL2 between host and guest Content-Language: en-US To: Mark Brown Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Mark Rutland , Luis Machado , Vladimir Murzin , linux-kernel@vger.kernel.org References: <20230216160012.272345-1-kristina.martsenko@arm.com> <20230216160012.272345-4-kristina.martsenko@arm.com> From: Kristina Martsenko In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230222_103654_523456_338D5838 X-CRM114-Status: GOOD ( 12.55 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 16/02/2023 16:20, Mark Brown wrote: > On Thu, Feb 16, 2023 at 04:00:05PM +0000, Kristina Martsenko wrote: > >> After this change, SMPME is no longer set for guests, which should have >> no effect as SME is currently disabled for guests. > > SMPME is mainly set for the benefit of any future guests, it is > used to turn off SME priorities for guests. While it's true that > we don't have any guests support yet it's there as safety to > ensure we don't forget to enable it later on or something > otherwise goes wrong. We don't need priority mapping on the host > since we don't have any priority mapping support at all, and it's > difficult to see a reason why we would want to remap our own > priorities in the host. That makes sense. I'll fix this in v2 so that priority mapping is enabled for guests and disabled for the host. Thanks, Kristina _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel