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 7BB88D37491 for ; Thu, 17 Oct 2024 14:03:32 +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=yGPiHz+gQE3Yfb1ipSft2kuX4JVZKsVZSFkpVSGu7Jg=; b=H3utcoXlZf/aALpEION5hHHifp zmzBfJ3hsPf7llWuMWqiEPIM7ZAoB3z1K7+URoI3VbncjLZO1/97IExHsYzfe2paFJ5SZmMInbdSZ PImMcFU1h4k1mpUrFDt3gqrIPZFxqymLJBMeUvkNlmHc4VQqKa8B0GXJplvetEPNGozGquY5ohokb VQBs+w7AvsbP3cQHjCXdAuSnT6Zf3cD0zJr1DvnkEcEd1UagBODd5cdDTTm82iexWUldhEmb9I8MQ jVUEyV0/vjt01bCCPUO/b63u0JyJ981NgTVEkq1G72YAXUItVeoNSqshZtUUDItw693UQDhFmr6Bu 1D6Er7WA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1R5w-0000000F2K1-1ALT; Thu, 17 Oct 2024 14:03:16 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1Qmf-0000000Ez3r-2W7U for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2024 13:43:22 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 9E7A75C576D; Thu, 17 Oct 2024 13:43:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD304C4CEC3; Thu, 17 Oct 2024 13:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729172600; bh=vGy/MFH2kmcnIumhn7RSlmUxkNblJEGrePq4xBLoSY0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VlrZjrjS1LPbSZ2Lsn2bzxOTwZpdshi9x6/3osNAeH1g9Y5gs3KBjrE8V4rZtyUVx DwHi3nTLpC/HTdQKXGR7f2fKSKERzHLtUnjaq20bCYLDDzseRthRw5IyTPKaWVgbsT nVsDMGURZ+LY+CzoRtbJVgP+dVuY0CJF7Q8hLNgV5wp16bhqe3cp38mD2gpgUyG8v1 OI6vSZQ/uJb8ScsU10APVSx0dK5Uv4bmmy6ERCHBylXMIbMc52SbFf0jW8k4iIRcfq vtQbhL5sx+LR18FcEjWPV8Ois6KT9rDNnMYPNcq/sBHoC80OqkolXROSWnvdgGhW3i tdtTuRsPMWYFQ== 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 1t1Qmc-004T0Z-HC; Thu, 17 Oct 2024 14:43:18 +0100 Date: Thu, 17 Oct 2024 14:43:17 +0100 Message-ID: <86jze64zgq.wl-maz@kernel.org> From: Marc Zyngier To: Joey Gouly Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, anshuman.khandual@arm.com, james.morse@arm.com, Oliver Upton , Suzuki K Poulose , Zenghui Yu , Jing Zhang , Shameerali Kolothum Thodi , Catalin Marinas , Will Deacon Subject: Re: [PATCH v5 4/7] KVM: arm64: Fix missing traps of guest accesses to the MPAM registers In-Reply-To: <20241015133923.3910916-5-joey.gouly@arm.com> References: <20241015133923.3910916-1-joey.gouly@arm.com> <20241015133923.3910916-5-joey.gouly@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.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: joey.gouly@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, anshuman.khandual@arm.com, james.morse@arm.com, oliver.upton@linux.dev, suzuki.poulose@arm.com, yuzenghui@huawei.com, jingzhangos@google.com, shameerali.kolothum.thodi@huawei.com, catalin.marinas@arm.com, will@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-20241017_064321_700614_E3BE5DC2 X-CRM114-Status: GOOD ( 14.08 ) 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 Tue, 15 Oct 2024 14:39:20 +0100, Joey Gouly wrote: > > diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c > index dad88e31f953..c21840042785 100644 > --- a/arch/arm64/kvm/sys_regs.c > +++ b/arch/arm64/kvm/sys_regs.c > @@ -2517,8 +2517,11 @@ static const struct sys_reg_desc sys_reg_descs[] = { > { SYS_DESC(SYS_LOREA_EL1), trap_loregion }, > { SYS_DESC(SYS_LORN_EL1), trap_loregion }, > { SYS_DESC(SYS_LORC_EL1), trap_loregion }, > + { SYS_DESC(SYS_MPAMIDR_EL1), undef_access }, > { SYS_DESC(SYS_LORID_EL1), trap_loregion }, > > + { SYS_DESC(SYS_MPAM1_EL1), undef_access }, > + { SYS_DESC(SYS_MPAM0_EL1), undef_access }, > { SYS_DESC(SYS_VBAR_EL1), access_rw, reset_val, VBAR_EL1, 0 }, > { SYS_DESC(SYS_DISR_EL1), NULL, reset_val, DISR_EL1, 0 }, For completeness, can you please add the EL2 MPAM registers to that list, making them equally UNDEF? Thanks, M. -- Without deviation from the norm, progress is not possible.