From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6BDB13F075D; Wed, 16 Sep 2026 07:04:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789542297; cv=none; b=Mc2kIKKOyeQ55geoNLRSpbT2cqcnyn3Tv1ub8QVAVUr/ggACcs8IYaQIHKrF2X7P6Q3KoqLw9Tyj5tfyZfaQ4PBI/FUBgqtKdn8Tt9wr9vT9BeQ90uSpMhC5a9hOyzptuqnWie+akaQkc2bdd5XatAdLhhd5+9YY+QaLVMszG4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789542297; c=relaxed/simple; bh=xMnq3uzVoAmaiIsnEU84IZTo1wWIyDH0jpogKeuTURg=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=pGNOu/pBklX5CSDkm0cP1rnP4+/A2J6oimq75uURZygg57uY4H8KRawZIX77pbUFAYN2NgccpsgpX+JtGqvdLSAgXe06b/1kYNiIvIbOEBskNedEkw7RFxZm4boKDec4jbcJwsyhK4ipf9L4jot6ZTVQQ8yMysBxUA+avaFxgnw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q4NP19Sb; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q4NP19Sb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB9D31F000FF; Wed, 16 Sep 2026 07:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789542296; bh=ijfOOZd0pqERrTuVYZCNeIuM97HHT4M3Ng/p5mLJTb8=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Q4NP19SbuFICPDiwdiSSqrh0hVqa8/rRI63q89d6415EmMuU0T0GJ1vJfy9CI/z6T qOIIQ7rRPKuzkY3GSQCPO4paBLZHMrCzdfsALXiwBe5QaPJwG8e5kjOmXtmYTI/MXC m2XuuBk2g7HibnfcxmZFhNdCu4K9VfGVA/PMueG3XGFJ0Sym6f5hgNcTD6Azx2RIGU Dt8imczitPjeUG2YbF9gxHLsnVoEa9jbKP2Owu/Z3d8xYkWNCiDkqIFEqPnyekbs+4 AFq9akTLhAn9ID5JZkNEmajXvT4N2mmMbWoXoApIXWK61QJk9nwzNMa3cYvMA+PZNO 2U0YG2kIfOZ9w== 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.98.2) (envelope-from ) id 1x6jhN-00000009Tjo-2mC2; Wed, 16 Sep 2026 07:04:53 +0000 Date: Wed, 16 Sep 2026 08:04:53 +0100 Message-ID: <86mrth65ii.wl-maz@kernel.org> From: Marc Zyngier To: Itaru Kitayama Cc: Wei-Lin Chang , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Oliver Upton , Fuad Tabba , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Mark Rutland , Wang Han , Shuai Xue , "Lorenzo Stoakes (ARM)" Subject: Re: [PATCH v6 0/7] KVM: arm64: nv: Implement nested stage-2 reverse map In-Reply-To: References: <20260915154305.3852871-1-weilin.chang@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/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@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: itaru.kitayama@fujitsu.com, weilin.chang@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, oupton@kernel.org, fuad.tabba@linux.dev, joey.gouly@arm.com, seiden@linux.ibm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, wanghan@linux.alibaba.com, xueshuai@linux.alibaba.com, ljs@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Wed, 16 Sep 2026 05:58:03 +0100, Itaru Kitayama wrote: > > Hi Wei-Lin, > > On Tue, Sep 15, 2026 at 04:42:58PM +0100, Wei-Lin Chang wrote: > > Hi, > > > > This is v6 of optimizing the shadow s2 mmu unmapping during MMU > > notifiers. > > > > This version fixes a few issues, and adds Marc's space optimization > > for kvm_guest_s2_mapping [1]. Please see the changelog for the details. > > > > Tested by booting L3, and running in-kernel targetted tests described > > in [2]. v5 got some tested-by's from Itaru and Wang (thanks), I didn't > > carry them over since some bugs fixed in v6 are non-obvious. Some > > retest would be much appreciated! > > > > Series based on v7.3-rc3 + Marc's nested mmu lifecycle fixes [3]. > > Observed on QEMU (accel tcg) only, but I saw: > > [ 1812.052752] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1630 > [ 1812.052896] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 596, name: shadow_stage2 > > The kernel is built on top of Marc's fix and your version six series, but > the fix for debugfs will be posted later? > > Your hello_nested and shadow_stage2 ran without an issue. > > Tested-by: Itaru Kitayama So you have established that there is a critical locking bug, make sure you don't communicate any information to help narrow where that bug is, and yet give your Tested-by: tag? What is the point? I'm baffled. Can you at least provide an indication of what you did to get there as well as the full backtrace? M. -- Without deviation from the norm, progress is not possible.