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 9EFA9C28B2F for ; Sun, 9 Mar 2025 19:00:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ltX42GCD3OOcErYd0cDkI1zVWdn7hEPRnLMiDj97XDk=; b=U6pmyc+fEZc3+0FiC0asPbw0EV DScvVIa8wFg2K2BmTUFYY+VMvf4Bq5AGnTUPG4KdijteN/DoTzeI8utUlnJYfDCpr4NnrAj1yhpwr ViQrV58dMGm9vRQz17/4kzDI430uRR2OSnaudIMvKAjUYacfftDYaF/ERJsynGaPth92DDtJQr45C lPWv7+VB56oocQHSBQFdIqeabAcMs1qJ9UwJamjSnkvVDufbr/GsmAxGMCnKEZLCDRtZeKJLe9lzj SDwFod77Xr3ptjpNM8i+4MFj44xupl8MQu/0QngE3A4P1GHLFlwLKeGgajI0RNvjiJbEG5RTyPHmv W/O7jfdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1trLsZ-000000011Vn-3wWW; Sun, 09 Mar 2025 19:00:03 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1trLKR-00000000y2g-12iJ for linux-arm-kernel@lists.infradead.org; Sun, 09 Mar 2025 18:24:48 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 7E844A45C37; Sun, 9 Mar 2025 18:19:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC2FCC4CEE3; Sun, 9 Mar 2025 18:24:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741544685; bh=xqmbU01GvdRaqLnnBBBn3XWRf5tpVBKdGgOv8hcAq4I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TuxO7slnvPm42OZE3We1kr9s6YsqJXcntDBJM4sjjHr1gJZU6KOwvqWRKv5mrj1Da 191Zb644if4IMPc5rLlMjMd2+ykoEiY2ok19kR26i4AuWOmnDnDs3n7AnEn8C/N8oH F0TeLtOqy5mZ8NdP61zJAIie/uGQ+0pjgbeec7yzrTYcH/4LBk7xtPtTa8dOtHqoCG DGVBl/1g7P2HCe90jeRPsYZfnBaItg+j5GuQwIeViKkQnwcs4zIo2TbAtWDuvZYuv6 eFGt0y+qLjKb2zs+RcY4ovh++NeyMy6aOl04C1WiDbgZ97FUsNX+1RFUOLp6VUv4rC ALlRemASiI7pg== 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 1trLKM-00Bxrp-9T; Sun, 09 Mar 2025 18:24:42 +0000 Date: Sun, 09 Mar 2025 18:24:40 +0000 Message-ID: <868qpeoydz.wl-maz@kernel.org> From: Marc Zyngier To: Sebastian Ott Cc: Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] KVM: arm64: Writable TGRAN*_2 In-Reply-To: <20250306184013.30008-1-sebott@redhat.com> References: <20250306184013.30008-1-sebott@redhat.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.4 (aarch64-unknown-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: 185.219.108.64 X-SA-Exim-Rcpt-To: sebott@redhat.com, oliver.upton@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, 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-20250309_112447_383532_B15B85FF X-CRM114-Status: GOOD ( 12.81 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 06 Mar 2025 18:40:13 +0000, Sebastian Ott wrote: > > Allow userspace to write the safe (NI) value for ID_AA64MMFR0_EL1.TGRAN*_2. > Disallow to change these fields for NV since kvm provides a sanitized view > for them based on the PAGE_SIZE. > Also add these bits to the set_id_regs selftest. > > Signed-off-by: Sebastian Ott Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.