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 F3937C6FD1D for ; Fri, 17 Mar 2023 15:10:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231509AbjCQPKu (ORCPT ); Fri, 17 Mar 2023 11:10:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231420AbjCQPKr (ORCPT ); Fri, 17 Mar 2023 11:10:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC5493A4EE for ; Fri, 17 Mar 2023 08:10:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 78E1C601C3 for ; Fri, 17 Mar 2023 15:09:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B585C433D2; Fri, 17 Mar 2023 15:09:35 +0000 (UTC) Date: Fri, 17 Mar 2023 15:09:32 +0000 From: Catalin Marinas To: Kristina Martsenko Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Mark Rutland , Mark Brown , Luis Machado , Vladimir Murzin , linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/10] KVM: arm64: hide MOPS from guests Message-ID: References: <20230216160012.272345-1-kristina.martsenko@arm.com> <20230216160012.272345-7-kristina.martsenko@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230216160012.272345-7-kristina.martsenko@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 16, 2023 at 04:00:08PM +0000, Kristina Martsenko wrote: > As FEAT_MOPS is not supported in guests yet, hide it from the ID > registers for guests. > > The MOPS instructions are UNDEFINED in guests as HCRX_EL2.MSCEn is not > set in HCRX_GUEST_FLAGS, and will take an exception to EL1 if executed. > > Signed-off-by: Kristina Martsenko Acked-by: Catalin Marinas 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 07ECDC6FD1D for ; Fri, 17 Mar 2023 15:10:34 +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:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+Q+Z0evHbRMO2Fxg3AxztMLOekJ5nQJSWYH7i1vPmxo=; b=yhVviIDuhZpX1W WFr6fbDGHLFkiBeEk2UvGb7qtuC8MyS3cH3yJ1VsoP0butlkYi+7u7OnrHrdUp7eiBTR+HdSwainr m2jhQ4yD0O1T68wkij4xHr2c8g5Bqcop4G0Almjj89UGVh9XEu7iwQsqZ2345rjBwevpGzh1vIerJ hvCCHweUS2lbkxN/+s6b44W982zsziqVqzbsEPYiG6h1zlG5ZwuD+KdP+VujMXpxvFcoXbtovM2IZ VbiKKITJW5+soMMZVopt9PEbQrFGcNBj9ZvUcXFHvWZqhoaCIX3DsHdn0/6J3Xd+fGwjJUiJ9OoZY AaLgviQmX0ixo62fCp1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pdBiG-002Zk0-0y; Fri, 17 Mar 2023 15:09:48 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pdBi8-002ZhD-2H for linux-arm-kernel@lists.infradead.org; Fri, 17 Mar 2023 15:09:42 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4ADFCB82560; Fri, 17 Mar 2023 15:09:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B585C433D2; Fri, 17 Mar 2023 15:09:35 +0000 (UTC) Date: Fri, 17 Mar 2023 15:09:32 +0000 From: Catalin Marinas To: Kristina Martsenko Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Mark Rutland , Mark Brown , Luis Machado , Vladimir Murzin , linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/10] KVM: arm64: hide MOPS from guests Message-ID: References: <20230216160012.272345-1-kristina.martsenko@arm.com> <20230216160012.272345-7-kristina.martsenko@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230216160012.272345-7-kristina.martsenko@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230317_080940_921278_5BCC52C7 X-CRM114-Status: GOOD ( 11.66 ) 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 Thu, Feb 16, 2023 at 04:00:08PM +0000, Kristina Martsenko wrote: > As FEAT_MOPS is not supported in guests yet, hide it from the ID > registers for guests. > > The MOPS instructions are UNDEFINED in guests as HCRX_EL2.MSCEn is not > set in HCRX_GUEST_FLAGS, and will take an exception to EL1 if executed. > > Signed-off-by: Kristina Martsenko Acked-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel