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 4F88BC3271E for ; Mon, 8 Jul 2024 17:00:41 +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=f+BFVB6XEa5FDmf9EoD+hXosQdhNPVV58kogRuGZeXI=; b=i/C8Ie/oJC0YqbUIibDViq0rZ/ Eoiv3UF/awC8WzABZXgEnpKwtn/+5i/MojSd6MtyZLUe8BoE7yaqaj5HSzsvE6KMC1S/YSPBaz6bz 9QaLAZK5CbCtjU+0NMv9TjhaU+GeR5RDIiDGroYNB+S4PstGjEH4Jqra6UGjUS2B8FGrYQomCh6FK NJqKoYD0tZw5uhX/Gm1vfn/exroxcXVKmPUQt0W5A39F26ln50mBR5KYvZGn522ZkyNbi337vtzGO /PXFMZiTvK6OllFLDl3O84AVFNJhfT5vdjou5nmWQib+tDNkIsqV6/6iUixgRuOz3UlNd1Kh9IdaQ hGQF853A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQrj4-00000004WML-25CA; Mon, 08 Jul 2024 17:00:30 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQrin-00000004WJT-2yzT for linux-arm-kernel@lists.infradead.org; Mon, 08 Jul 2024 17:00:16 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id E154060FD9; Mon, 8 Jul 2024 17:00:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90D00C116B1; Mon, 8 Jul 2024 17:00:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720458012; bh=TJXRiPQGbDDadYQlPjM5Ngjt6PZe8+vDuvb31W9v/2M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OfWubp0VahP6zI0SnnwH/MTPzr073H9EmTOxJqHzoO4AyWc+PaG9ov+g5ckG1LhoH rlR87KN4uIvcUqrzEnznPTE0/Jfdltf77SZjHmEb+oZTvh9SJIuvBvddK2yh3kJw4k klDD3CeMYhD46Vhp3/9ky6FoWSz/bGnL6Wla0naOt1E766HlWD3D81Y2BDppH5VKKF kV8Ib3qyWQ9B8OS7jVqmC/f1xnDWkGrtI6KVwbmzOeLfP/7r8stlhVMub8iE0nATda 0k1yrvJn1ZTwKL4kqIScsUNDt8Fn2Jz7UCsgux75ahgaRwgFgChIfAv9AduiXpL3Pj cOFZUVobTTCYw== 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 1sQrik-00AfQi-Gh; Mon, 08 Jul 2024 18:00:10 +0100 Date: Mon, 08 Jul 2024 18:00:09 +0100 Message-ID: <867cdv4y5i.wl-maz@kernel.org> From: Marc Zyngier To: Alexandru Elisei Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Joey Gouly Subject: Re: [PATCH 00/12] KVM: arm64: nv: Add support for address translation instructions In-Reply-To: References: <20240625133508.259829-1-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.3 (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: alexandru.elisei@arm.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, joey.gouly@arm.com 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-20240708_100014_968786_87C9EADB X-CRM114-Status: GOOD ( 25.28 ) 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 Hi Alex, On Mon, 08 Jul 2024 17:28:11 +0100, Alexandru Elisei wrote: > > Hi Marc, > > On Tue, Jun 25, 2024 at 02:34:59PM +0100, Marc Zyngier wrote: > > Another task that a hypervisor supporting NV on arm64 has to deal with > > is to emulate the AT instruction, because we multiplex all the S1 > > translations on a single set of registers, and the guest S2 is never > > truly resident on the CPU. > > > > So given that we lie about page tables, we also have to lie about > > translation instructions, hence the emulation. Things are made > > complicated by the fact that guest S1 page tables can be swapped out, > > and that our shadow S2 is likely to be incomplete. So while using AT > > to emulate AT is tempting (and useful), it is not going to always > > work, and we thus need a fallback in the shape of a SW S1 walker. > > > > This series is built in 4 basic blocks: > > > > - Add missing definition and basic reworking > > > > - Dumb emulation of all relevant AT instructions using AT instructions > > > > - Add a SW S1 walker that is using our S2 walker > > I wanted to have a look at the S1 walker, and in my inbox I only have > patches #1 to #9 ("KVM: arm64: nv: Make ps_to_output_size() generally > available"). Checked on the kvm mailing list archive [1], same thing; a > google search for the string "KVM: arm64: nv: Add SW walker for AT S1 > emulation" (quotes included) turns up the cover letter. > > Am I looking in the wrong places? > > [1] https://www.spinics.net/lists/kvm/msg351826.html This is very odd. I probably have sent them by specifying 000*patch instead of 00*patch, hence the truncation to 9 patches. Let me try and send the delta. With a bit of luck, it won't make a mess in the archive[1]. Thanks for the heads up, M. [1] https://lore.kernel.org/all/20240625133508.259829-1-maz@kernel.or -- Without deviation from the norm, progress is not possible.