Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4782826rwd; Tue, 30 May 2023 09:47:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51xnaLmaf0gSIs9El+4zAyR5VRRTQUX8AzShqDs5B6bYXtXHRIJ0t694ezEsK0RtgOwCpT X-Received: by 2002:a05:6a20:4326:b0:111:d03c:2bf9 with SMTP id h38-20020a056a20432600b00111d03c2bf9mr3673944pzk.12.1685465266330; Tue, 30 May 2023 09:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685465266; cv=none; d=google.com; s=arc-20160816; b=tQumw89E0wsxQyaRbOOcf5dF6t0KMShwMkkwxqbQxdg7aRsTfkGQ55J3WHErrDC3wA L2Ctd11ERwYnCEGgriL8BsdGLhl9/itQpnY3J/ZWwrKGDxP5m07G51WeDPJxRI5DQsBQ HM4sJbupmIljunAImI01u+ZjElR/gAkb5RfFals3F6KZaBSEqSObUFlSzSfCnJBTAO4V OrbaFPr5m/BK8ml8hsj0XoeWITzkpVUXOHqzX37rB7G095EcYtB9jqHOo4sKtCJrpVtG vtcWr9eLK+Mvi+4p4QmlyiPt1ny3YxsQTmHsWfvBF4DWCqIWlF4ghvJp4+kvyTYr6ZdS QzFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=lvVuDSi7CLf0hcebEWmNdh9UU+DXHrlPLMRE62RDAlo=; b=r/2Af40uKYdrbJJ8HsfrwbcgAFXXhPxM5Ic8HUfSl2aES6erMt76UjrEtMqaAs+W06 3KY42SIk1v9D4BAQPsr6zqPPMCHchSZ+Q3rwNCe+xR7GUviyaVnoj2NjRtzpzM8hRQCy BnEab2GTDTtNVy+e6vKHH6X0O1OPTZOEcf9QYkjTHe/RWmEMm0j9KSrAfuTIZTM6pTYx Ks/gZ0qZSGS/1CEfHLf+p5EiFY9i+XUvx0pUBJUD7wH5AGzwA8FutBz3u2A/QtoLdM0U vk5mLO9ERWVGfqBaRGO3LuffvQBCREqaWi9Fy0r3QRbAexkLzQaGchsGxf6SVQEwRqUX 3yPw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t16-20020a63b250000000b0053fb7cd1ac4si1241957pgo.519.2023.05.30.09.47.31; Tue, 30 May 2023 09:47:46 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231952AbjE3Qfe (ORCPT + 99 others); Tue, 30 May 2023 12:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbjE3Qfc (ORCPT ); Tue, 30 May 2023 12:35:32 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E4E3E1BB for ; Tue, 30 May 2023 09:35:12 -0700 (PDT) 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 6048716F2; Tue, 30 May 2023 09:35:31 -0700 (PDT) Received: from [10.1.34.168] (e126864.cambridge.arm.com [10.1.34.168]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D83E93F663; Tue, 30 May 2023 09:34:42 -0700 (PDT) Message-ID: Date: Tue, 30 May 2023 17:34:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 06/11] KVM: arm64: hide MOPS from guests Content-Language: en-US To: Colton Lewis 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 , Mark Brown , Luis Machado , Vladimir Murzin , linux-kernel@vger.kernel.org References: From: Kristina Martsenko In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 25/05/2023 20:26, Colton Lewis 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. > > For my benefit, could you please explain why no support for guests yet? > Why not set HCRX_EL2.MSCEn in this series? There's probably a few more things that need doing for guest support, such as setting the HCRX_EL2.MCE2 bit and handling the mops exception in KVM. I'm currently having a look at guest support. Thanks, Kristina