Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3274154rwd; Sat, 3 Jun 2023 02:02:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5SSd2S7bxDu/kj3XMp+CAg2M4Qfkgdycff/5El39ooZeA4qCz9da52XV0u7/CtldmTy/n7 X-Received: by 2002:a05:6808:b0f:b0:398:27d3:1fc3 with SMTP id s15-20020a0568080b0f00b0039827d31fc3mr2472612oij.42.1685782969413; Sat, 03 Jun 2023 02:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685782969; cv=none; d=google.com; s=arc-20160816; b=BaiBKJ3YIGAEwV0eJ8x+mJ9zJD2G0mRsn+vvCQoCYAuUrDFXDd7Qit01oGWdQm4Nod VUrSOUd+kRQvdTrp5+rRivKFNJSERN/30kjC+pgo81aTXx6pa08/qTWMzVLcP3vOmVZ7 iz4FiaVNR1PW7GblYU5DJSW5fcQgwyr8LnuHYEzcWngIAwa2rVfVPUc+GNzxVCdi1lxw nU72sHrCeUAWElcn7uBgDoTFAcah4JkJa4ahi4C8zIRS/ywC5J/QZECT6brucgND4/fc tbjj87dS3KTJ2ocZTK/EMqm32K6kYwX4OqnWI9wBR3o4164UDX2KAuze5s4G1N0bdIUz ob5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=HFwKWcISI7o4PQbJhcksNRlcD/oH96Zh2bnWF5f/5I8=; b=ghEeYW9YtuIf2uDUNWEUy042MW9eeiEMPQyFGbZPheRaBbx2UHmeeSB7khyc2kIJJJ L7Jjr+OaH/vFDCp12yeeJ6m+s+lm53SkeO7Cp6UCZ+VEZwNpc9MdH3P91rb9Ip/+z0J8 saz/Zx3x8sbXXpOUjE/v0TOd3bwZkOmqxqOKXmWsqne3HPuOkQuvzA9E6E7509McY9ri 72th8EE9Qtk1FfUh3P/h9Q044WoFYLBpjv467UH2i3SvLRkcjvacXqP2m2DhUIzjFC1X +/YqgPCuGRfaPXrtvBAPTjzs1PB0QV4Wv+qUds7lVksfLsM5h1Va5r3yTJTMfjMY+Bjd AR8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=if0swBwI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y4-20020a17090322c400b001ae001e8bc9si2329646plg.188.2023.06.03.02.02.34; Sat, 03 Jun 2023 02:02:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=if0swBwI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237015AbjFCImZ (ORCPT + 99 others); Sat, 3 Jun 2023 04:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjFCImY (ORCPT ); Sat, 3 Jun 2023 04:42:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 509EC196 for ; Sat, 3 Jun 2023 01:42:23 -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 DA1D2617F3 for ; Sat, 3 Jun 2023 08:42:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39A53C433EF; Sat, 3 Jun 2023 08:42:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685781742; bh=XjNjfMoMDbotqrNdLrQzzOxnnbAn0kn7kYrkkhODOtw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=if0swBwI9fuJ59QcXFRA9QNyelnMnPoNuFUdOO6VY4w2Hfr+ORdJH8aRiVGSKjYLz ACC5ZOREGYpLndX/rXLc2G7H1b5Mudy7uYuZjU8Zu4t3qpus+2pctFNQ8VtUlxeuac rbAEWDhzjxXMtTTwAKdHVZ2nuFrLZg60YsRuook3tHbaJ/bh2rpx1sGtUsobPHGS9z +AypHdWeVK85rTFXDtiqI6KQ0B/8H7bxX16RDsnzCI4sLsg+Q1BwBOLu+TrX7gCuIg GzLyZ+cAgnL7fUjcaTsrwoQ9B8oynrPjeRotM5hZPk1MVWFYY9KRhQ/a6ebiJ9ft5O MMthyytlKVHzw== Received: from [37.166.197.171] (helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1q5Mq4-002Wsz-0o; Sat, 03 Jun 2023 09:42:20 +0100 Date: Sat, 03 Jun 2023 09:42:18 +0100 Message-ID: <87ttvpndhx.wl-maz@kernel.org> From: Marc Zyngier To: Kristina Martsenko Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon , 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 v2 06/11] KVM: arm64: hide MOPS from guests In-Reply-To: <20230509142235.3284028-7-kristina.martsenko@arm.com> References: <20230509142235.3284028-1-kristina.martsenko@arm.com> <20230509142235.3284028-7-kristina.martsenko@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 37.166.197.171 X-SA-Exim-Rcpt-To: kristina.martsenko@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, catalin.marinas@arm.com, will@kernel.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, mark.rutland@arm.com, broonie@kernel.org, luis.machado@arm.com, vladimir.murzin@arm.com, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 09 May 2023 15:22:30 +0100, 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. > > Acked-by: Catalin Marinas > Signed-off-by: Kristina Martsenko This is very likely to clash with Jing's series that completely reworks the whole idreg series, but as long as this is on its own branch, we can deal with that. Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.