From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B79C168C1; Tue, 21 Nov 2023 09:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="F0U3uXef" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC07CC433C8; Tue, 21 Nov 2023 09:41:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700559677; bh=379g4h+2GfMItulHPNl9leppzk/chVF5EpjsGaRxLKg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=F0U3uXefqiqfv6gEP6kKbCrQTl6bhCTRTjA6Tzfos2Gwwt86zW5CCJKAtCH3cUCoR hq2W/LfLiS8OyQt5pjq5YEXyXS4y5VD6wisLD2zF6fEAnK052HgG8J9raPalW3K6wQ FjZ+Iel9iS1Prpdptx8JSCt4wwM14La7c0lsAr5hvqRhhk/8fBNVFEJSrg2grESpBE +j8f00oSY/JScZ4vVdzxtsA7hrfqLcyzKomOz8Xyz1xvbNN7DnwjEmGJaHft2KAD84 ygMQztfR3xJzA9D3/6eKINM5hulYJ3bl8aVhI3f45VoOymwEVK80s7Wg15MhLvVM6O lpYHo+oS3Bajg== 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 1r5NFq-00F1Iv-Go; Tue, 21 Nov 2023 09:41:14 +0000 Date: Tue, 21 Nov 2023 09:41:13 +0000 Message-ID: <86r0kjzbnq.wl-maz@kernel.org> From: Marc Zyngier To: Ganapatrao Kulkarni Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandru Elisei , Andre Przywara , Chase Conklin , Christoffer Dall , Darren Hart , Jintack Lim , Russell King , Miguel Luis , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu Subject: Re: [PATCH v11 00/43] KVM: arm64: Nested Virtualization support (FEAT_NV2 only) In-Reply-To: <67082409-f432-44b6-bf40-1af9b4b7b569@os.amperecomputing.com> References: <20231120131027.854038-1-maz@kernel.org> <86ttpfzd5k.wl-maz@kernel.org> <67082409-f432-44b6-bf40-1af9b4b7b569@os.amperecomputing.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.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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: gankulkarni@os.amperecomputing.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alexandru.elisei@arm.com, andre.przywara@arm.com, chase.conklin@arm.com, christoffer.dall@arm.com, darren@os.amperecomputing.com, jintack@cs.columbia.edu, rmk+kernel@armlinux.org.uk, miguel.luis@oracle.com, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Tue, 21 Nov 2023 09:26:22 +0000, Ganapatrao Kulkarni wrote: > > > > On 21-11-2023 02:38 pm, Marc Zyngier wrote: > > On Tue, 21 Nov 2023 08:51:35 +0000, > > Ganapatrao Kulkarni wrote: > >> > >> > >> Hi Marc, > >> > >> On 20-11-2023 06:39 pm, Marc Zyngier wrote: > >>> This is the 5th drop of NV support on arm64 for this year, and most > >>> probably the last one for this side of Christmas. > >>> > >>> For the previous episodes, see [1]. > >>> > >>> What's changed: > >>> > >>> - Drop support for the original FEAT_NV. No existing hardware supports > >>> it without FEAT_NV2, and the architecture is deprecating the former > >>> entirely. This results in fewer patches, and a slightly simpler > >>> model overall. > >>> > >>> - Reorganise the series to make it a bit more logical now that FEAT_NV > >>> is gone. > >>> > >>> - Apply the NV idreg restrictions on VM first run rather than on each > >>> access. > >>> > >>> - Make the nested vgic shadow CPU interface a per-CPU structure rather > >>> than per-vcpu. > >>> > >>> - Fix the EL0 timer fastpath > >>> > >>> - Work around the architecture deficiencies when trapping WFI from a > >>> L2 guest. > >>> > >>> - Fix sampling of nested vgic state (MISR, ELRSR, EISR) > >>> > >>> - Drop the patches that have already been merged (NV trap forwarding, > >>> per-MMU VTCR) > >>> > >>> - Rebased on top of 6.7-rc2 + the FEAT_E2H0 support [2]. > >>> > >>> The branch containing these patches (and more) is at [3]. As for the > >>> previous rounds, my intention is to take a prefix of this series into > >>> 6.8, provided that it gets enough reviewing. > >>> > >>> [1] https://lore.kernel.org/r/20230515173103.1017669-1-maz@kernel.org > >>> [2] https://lore.kernel.org/r/20231120123721.851738-1-maz@kernel.org > >>> [3] https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/log/?h=kvm-arm64/nv-6.8-nv2-only > >>> > >> > >> V11 series is not booting on Ampere platform (I am yet to debug). > >> With lkvm, it is stuck at the very early stage itself and no early > >> boot prints/logs. > >> > >> Are there any changes needed in kvmtool for V11? > > > > Not really, I'm still using the version I had built for 6.5. Is the > > problem with L1 or L2? > > Stuck in the L1 itself. > > I am using kvmtool from > https://git.kernel.org/pub/scm/linux/kernel/git/maz/kvmtool.git/log/?h=arm64/nv-5.16 Huh. That's positively ancient. Yet, you shouldn't get into a situation where the L1 guest locks up. I have pushed out my kvmtool branch[1]. Please give it a go. Thanks, M. [1] https://git.kernel.org/pub/scm/linux/kernel/git/maz/kvmtool.git/log/?h=arm64/nv-6.5 -- Without deviation from the norm, progress is not possible.