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