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 6378EC67861 for ; Fri, 5 Apr 2024 10:16:02 +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:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=linouIbUToTFms7qaKa64q2adMpeGgD/yavDiPK6Sw4=; b=Y2PT3ksPQbKGv/ l8CMWBy+zafyw8cvn3Ft7dQcxjg7YobfKB9eEqoApI5C17ypE/zD5Bo2rNrE8xOjWSGqoxeeaU4Xw RbywBSXOJCYp9NRiLdxAtAkkej6ga2Qr2LDT5YEBHLXwLfDhPcO4ehcftiOiLs1I+Pi5JsD7euXkr PiSJkCu4Z+ZH8XZiKfDrtcDEIG1C0/ppJUlim98OTtRr4qhUz7X6PZm5EL+CFjsYBtVf3L5svFChw YdXq4TanEsvOi+wAx1r2wzyop7J05gwcsNnfY4zpq9wroUrft2hiqxNlYRiahwP/Qlx7nLnfDVf0g EwNG/zxWtmYTdr4BVq3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rsgbu-00000006ODm-30zc; Fri, 05 Apr 2024 10:15:50 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rsgbt-00000006OBl-2bOE for linux-arm-kernel@bombadil.infradead.org; Fri, 05 Apr 2024 10:15:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=56lzhC6epZYLAF3jSKqJW0NMKBNcsMw0LVNH98dRu9E=; b=lVsnFnIrFUHuAwWeTqCWQj33nq FmHmp0U1vdZWLFf9XaplkYunBKIb9+nURmnn8/jmNio95Npd8vAafWKPxgO4J/c8zMttwi7dEGdXG MZw7pLsBzcqFIir68938EKFh72ThDGEnoGB5aJfI6XfOJimZu2ojKWRYA4pZLxbP4LiaFOAGWXJYk PobXFxPOGidSOxamZ7lSN0U8i1NynVfBd7SrbRW1rObpCbH2O3FFmsTERefBAwU+fAUVA9Dg5hRiD P8gwcgpFtc9h7wRqXGBWjc8J+Zfe4vozNqcXjjXQBQAC0IzDJklXRYosRmsVM/D0TvCgLVWgdyTiT QDV+vdQg==; Received: from dfw.source.kernel.org ([139.178.84.217]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rsgbq-00000005YNU-0DDj for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2024 10:15:47 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id CF1C5616F7; Fri, 5 Apr 2024 10:15:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 768B3C43390; Fri, 5 Apr 2024 10:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712312140; bh=ES+fMkXqFNZ+dS5Glpq+vFaKhveIj+TsprmaPhnsttI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UhRN5pR75krC2i2PczKh4F20/cl7rTx658VXlRQm/+7Hwm37qaVwkDTJbAvX5z24X m0st4Hp2cR8QtS9uoFUlHrhARSVLDd9T3/wj1+Io5XH/7rmPbiaPbad8zFSfgSz0eS nzIyCBZpKQlOECQqrtIQPqiGzsoEdBzmeko/EOPiujHhRkzgjXHj+g8XBaiZZFOwqB X81ji+Vz6t+AE5Eu/9KRV0ha1vyiUtYGNr7g6nveE0wRVaYl1tvXfApA8KL4FbGLWM La6rKn4u0CGpVBakfLOAcD5jWcZg6wOF+VnUWBDpjs7dH5iwzXd9umqAUzQBqQzAPv SoOcmbs3zl2QQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.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 1rsgbi-001m8K-7O; Fri, 05 Apr 2024 11:15:38 +0100 Date: Fri, 05 Apr 2024 11:15:37 +0100 Message-ID: <86a5m8t8s6.wl-maz@kernel.org> From: Marc Zyngier To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, Jonathan Corbet , Oliver Upton , James Morse , Suzuki K Poulose , Catalin Marinas , Will Deacon , Mark Brown , Mark Rutland , kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC 5/8] KVM: arm64: Explicitly handle MDSELR_EL1 traps as UNDEFINED In-Reply-To: <20240405080008.1225223-6-anshuman.khandual@arm.com> References: <20240405080008.1225223-1-anshuman.khandual@arm.com> <20240405080008.1225223-6-anshuman.khandual@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/29.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: anshuman.khandual@arm.com, linux-arm-kernel@lists.infradead.org, corbet@lwn.net, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, will@kernel.org, broonie@kernel.org, mark.rutland@arm.com, kvmarm@lists.linux.dev, 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240405_111546_289207_E5FF1454 X-CRM114-Status: GOOD ( 14.53 ) 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 Fri, 05 Apr 2024 09:00:05 +0100, Anshuman Khandual wrote: > > Currently read_sanitised_id_aa64dfr0_el1() caps the ID_AA64DFR0.DebugVer to > ID_AA64DFR0_DebugVer_V8P8, resulting in FEAT_Debugv8p9 not being exposed to > the guest. MDSELR_EL1 register access in the guest, is currently trapped by > the existing configuration of the fine-grained traps. Please add support for the HDFGxTR2_EL2 registers in the trap routing arrays, add support for the corresponding FGUs in the corresponding structure, and condition the UNDEF on the lack of *guest* support for the feature. In short, implement the architecture as described in the pseudocode, and not a cheap shortcut. Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel