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 95A9BC77B7A for ; Tue, 30 May 2023 16:35:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232413AbjE3Qff (ORCPT ); Tue, 30 May 2023 12:35:35 -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 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