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 6BCA6CF34C4 for ; Sat, 5 Oct 2024 14:35:23 +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=F9I+G3dkpD472zrF/u/N0COUhJFUm/KnvLFfl5SJ7HM=; b=cTwk3w4QG6jAsi5e1VJqcn1MUZ ls1yOkl4jcpOE36z4GeLjHb0l2ByGly4oojeTa0xl1hE0dgir8pGmLY/rRm1GMctG+sCm9lr23GGY 89LlrkFaZVcnYQjZxmyMJuPyRVtk5ggiYtsbPX9eZnj/FfqClyHpvEwFUlfiS7TIqCHzyNzbLuDla Ek+399At4ZTqypIzhIC+G2k27gBp6lckVC/6PhhhoCeT8Pzy/cfz3cfrIJT/QVrQ0sDsTXWQ5i499 VwbGy20WSyT/PBV7nZ+4kyG66vlaDD+IqTOSoYQZZpqZvpxRv277p6yjFc0T+7mPhpRAf5Bl+pY+R sh1c3d6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sx5sG-0000000FTO8-3yKC; Sat, 05 Oct 2024 14:35:12 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sx5r0-0000000FTHp-3JVh for linux-arm-kernel@lists.infradead.org; Sat, 05 Oct 2024 14:33:56 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 472AEA4013C; Sat, 5 Oct 2024 14:33:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58532C4CEC2; Sat, 5 Oct 2024 14:33:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728138833; bh=MU0fRAPqCrXvULNmVt/pnSMsmzjWy+uOjBzDEn46sHE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OvSDtyHPg97pm18qhn1VmhnVbVIflurs/GIKYIChPgjZmpfPcEe8bzCwGaHlMUzCO 9sofmVYLI2aEjdevyG2GSBb0lyLgVCY2I8zPB0CwaQvPy3h13YMPCKdu9k/DhxevcJ b66WVnfhDqEw6Od/M2ICj7imsUfr53fm0QgVGrLr8ioMJSOveJj6/IakXZTG6PDJTZ Dfv7vAe3nJmjoWfnSZtKvLnhTjKceM/CqIMgHgIds/YsVGVwzkPiLdv0Q/JlTs+jzI +ozv3FgXSgMv9uZOOqtwR+H9R978wQtRNalF8ISMpTOcwItPym41W7JJ05sdiDmAZ5 X1oFfmJH/bPCA== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.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 1sx5qw-000cXV-BW; Sat, 05 Oct 2024 15:33:50 +0100 Date: Sat, 05 Oct 2024 15:33:48 +0100 Message-ID: <87cykevctv.wl-maz@kernel.org> From: Marc Zyngier To: Mark Brown Cc: Catalin Marinas , Will Deacon , Oliver Upton , Joey Gouly , Suzuki K Poulose , Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v14 3/5] KVM: arm64: Manage GCS access and registers for guests In-Reply-To: References: <20241005-arm64-gcs-v14-0-59060cd6092b@kernel.org> <20241005-arm64-gcs-v14-3-59060cd6092b@kernel.org> <87iku6vl4z.wl-maz@kernel.org> <87frpavgam.wl-maz@kernel.org> <87ed4uveam.wl-maz@kernel.org> 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 (x86_64-pc-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: broonie@kernel.org, catalin.marinas@arm.com, will@kernel.org, oliver.upton@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, shuah@kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-kselftest@vger.kernel.org, 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-20241005_073354_915758_3CA2DD73 X-CRM114-Status: GOOD ( 21.37 ) 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 Sat, 05 Oct 2024 15:26:38 +0100, Mark Brown wrote: > > [1 ] > On Sat, Oct 05, 2024 at 03:02:09PM +0100, Marc Zyngier wrote: > > Mark Brown wrote: > > > > Ah, I see. I'd been under the impression that the generic machinery was > > > supposed to handle this already using the descriptions in > > > emulate-nested.c and we only needed handlers for more specific actions. > > > From that very file: > > > /* > > * Map encoding to trap bits for exception reported with EC=0x18. > > [...] > > */ > > > Everything else needs special handling. > > I see. I had noticed that comment on that table but I didn't register > that the comment wound up applying to the whole file rather than being > about a specific part of the handling. I'm a bit confused about how > things like the SVE traps I mentioned work here... Like all ECs, the handling starts in handle_exit.c. M. -- Without deviation from the norm, progress is not possible.