From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from esa5.hc1455-7.c3s2.iphmx.com (esa5.hc1455-7.c3s2.iphmx.com [68.232.139.130]) (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 5BA0230E84D for ; Mon, 13 Jul 2026 23:11:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.139.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783984264; cv=none; b=MqtQ5YPCZPbgPkZ33u16jrxfwBGq455ENZPRTIubUK+GLpP2GSc45T43rbWP91pRIfpXcySQDr821Bgca7GeOnqOYZOmrl+jaUwkZ05mazXAiAw2vNkL7TJsCTkgMaQpZcQCuFP3o2T971Hkt4zfLYRng7529JyvOriHHbXYCEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783984264; c=relaxed/simple; bh=X/x4D83R5gsU8E1CkKaiYFFPJM0xUUgh7oB69MucA88=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=opX1+ScoKUj16u7ynHB5pYFyshgrogGJ/p+GdkpHou5flag25O/Q3VvVZu6mtEfSDJMNQ9tDVSNTT5h0blzFrmIivyd4tW8jVdpL0ABziE2vzthTxcyuxYvPamn2qEtXJSy89fyQEDtArPkX0ZqwpMoMR0q4w4C+i5fpUKwHrtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fujitsu.com; spf=pass smtp.mailfrom=fujitsu.com; dkim=pass (2048-bit key) header.d=fujitsu.com header.i=@fujitsu.com header.b=dRpNoV5W; arc=none smtp.client-ip=68.232.139.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fujitsu.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fujitsu.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fujitsu.com header.i=@fujitsu.com header.b="dRpNoV5W" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj2; t=1783984263; x=1815520263; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=X/x4D83R5gsU8E1CkKaiYFFPJM0xUUgh7oB69MucA88=; b=dRpNoV5WBHk9/ZQinXysfJJN70pNtSqYWQuSAXEjFSwp9uIVBzOrXa8I Qg+/48i5OhWHrBEhHTF3WIBhFZ4W1RbJ2iuW9LN+IntYyalT+DnPLzq9e oh1p+BrDc74xyPhxnwmeB3Txi9aKSUAcGmkv/l6Qq8PFluVHILHLKlYe0 tGNT1+sQ9qR/Lfa3ugSr0hM8CLTZ2t0js+Tu0Ryopjdp0O8iKdX/6Csc6 idlIMM0E5CboJ+Zhb1gpdZlxpuOY6IWH/2Qna31BQzheW7RdsuPRSpOly GgSO323YZhx9+8GaqBonqQ6fQEk8j1t+nfmyial8JflErWAkhbNGSVMSf g==; X-CSE-ConnectionGUID: hUof6QoaR8C93sfrpVxuiA== X-CSE-MsgGUID: EfyLDpsLR/CKbBmAZFTRPA== X-IronPort-AV: E=McAfee;i="6800,10657,11841"; a="245418098" X-IronPort-AV: E=Sophos;i="6.25,154,1779116400"; d="scan'208";a="245418098" Received: from gmgwuk01.global.fujitsu.com ([172.187.114.235]) by esa5.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2026 08:10:56 +0900 Received: from az2uksmgm3.o.css.fujitsu.com (unknown [10.151.22.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by gmgwuk01.global.fujitsu.com (Postfix) with ESMTPS id F0598820700 for ; Mon, 13 Jul 2026 23:10:55 +0000 (UTC) Received: from az2uksmom1.o.css.fujitsu.com (unknown [10.151.22.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by az2uksmgm3.o.css.fujitsu.com (Postfix) with ESMTPS id A5164C041D2 for ; Mon, 13 Jul 2026 23:10:55 +0000 (UTC) Received: from sm-arm-grace07 (unknown [10.124.178.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by az2uksmom1.o.css.fujitsu.com (Postfix) with ESMTPS id B88A718004EA; Mon, 13 Jul 2026 23:10:51 +0000 (UTC) Date: Tue, 14 Jul 2026 08:10:48 +0900 From: Itaru Kitayama To: Wei-Lin Chang Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Marc Zyngier , Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon Subject: Re: [PATCH v3 0/5] KVM: arm64: nv: Implement nested stage-2 reverse map Message-ID: References: <20260510145338.322962-1-weilin.chang@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260510145338.322962-1-weilin.chang@arm.com> On Sun, May 10, 2026 at 03:53:33PM +0100, Wei-Lin Chang wrote: > Hi, > > This is v3 of optimizing the shadow s2 mmu unmapping during MMU > notifiers. > > Two new preparatory patches are added, one reduces a hole in kvm_s2_mmu > and another refactors the code a bit during s2 faults. Other changes are > listed below. > > * Changes from v2 [1]: > > - Removed "polluted" teminology. > > - Use xa_{mk, to}_value() when storing and retriving values from maple > trees. > > - Avoid using the 63rd bit in maple tree values so that xa_{mk, to}_value() > does not lose us a bit. > > - Added reverse map removal during TLBI handling. > > - Other suggested refactorings. > > Thanks! Hi Wei-Lin As this series is no longer cleanly applied on top of the recent kvmarm/fixes, I wonder if you could update the series; I can wait if you're in the works of preparing v4. I am planning to test this series on HW with your proposed nested virtualization KVM selftests. Thanks, Itaru. > > [1]: https://lore.kernel.org/kvmarm/20260411125024.3735989-1-weilin.chang@arm.com/ > > Wei-Lin Chang (5): > KVM: arm64: Use a variable for the canonical GPA in kvm_s2_fault_map() > KVM: arm64: Move shadow_pt_debugfs_dentry to reduce holes in > kvm_s2_mmu > KVM: arm64: nv: Avoid full shadow s2 unmap > KVM: arm64: nv: Remove reverse map entries during TLBI handling > KVM: arm64: nv: Create nested IPA direct map to speed up reverse map > removal > > arch/arm64/include/asm/kvm_host.h | 17 +- > arch/arm64/include/asm/kvm_nested.h | 6 + > arch/arm64/kvm/mmu.c | 43 +++-- > arch/arm64/kvm/nested.c | 238 +++++++++++++++++++++++++++- > arch/arm64/kvm/sys_regs.c | 3 + > 5 files changed, 290 insertions(+), 17 deletions(-) > > -- > 2.43.0 >