From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796100284; b=B375kPDx1mNdc5/VfH/lVd/GDw4Ks5DZTWsbf5ofEhGHiDXUDC3yXa9mB00eRZv9MEJa KogErLqTHDRG6KgtWPfQP82WBPwKHG/DkEO4SgT4/MQGN1Z3F7v4P0g/Ufk0+/+jGVYDM 4yKkVNZzvBLQ2wMZ7b6uNQPL/KWwlESc4NskGkWrRqxnD256MF6BHGQxMMWeDlU9/pIu9 ZkhsV30tIdnmOClTLI6BeowkV9iaZoIsdy6Gz13V4uXC5Qcr++paNc+yElp06+em5NOpk 70xI94TLx2GnhlR1Rf/5UFSmzTb3KRYWHt8mDpFRDw+KtWCJONN4Ir9Oq0xpolmHUAg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796100284; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Mj34/i/ntf5fkPmZfqzCwfImVQ6OT+LPY9dQU3IJNDE=; b=hik8Ytte+jUTQb7AoJhzKEfBcH7Cn3CXUvAeQcwnVwhLSreVhr2Jiwu39mFrnSe9kdYD KJPrKj8nD83lhFs5wICY8SCwUxT8J453HM8sSMaSceOumqAme28XFpqoSK9kynfsluGdC FFc8CoQ+1xRFDfU1VQlzn5HFMpvOxFb4ZsdH/SQAC9qI/NYaeUOCPwLrUntPfbkBi9xZ7 bTiJ5C3rbCi3HmR4YmdsrEQGkW+hrdFY+ELAxc5wAPMFsv5Wyw0x1ldy0c6rVn/GGta79 7/nbm4m6vjQE2ag9rfWNid2anzf7YxzITISUji3FOJFJhERwU20MPhqGKdy4IknkDug== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Upy8hmwV; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50D78606A31A for ; Tue, 1 Dec 2026 04:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Upy8hmwV Received: by smtp.kernel.org (Postfix) with ESMTPSA id D18641F000C1; Tue, 1 Dec 2026 04:44:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796100283; bh=Mj34/i/ntf5fkPmZfqzCwfImVQ6OT+LPY9dQU3IJNDE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Upy8hmwVjQkaOdgFFTaIbYV7Wss5482A5EbDrGVmM3GMh1E0WAnwkEYVKCpF3AA0N We2v93PVMs9/WxIiCgfRfv1SvTKg0orQ/8+vHa840T18ZxfBBPXFPSh4Tocz0alWx0 YeuTUSO6S/i/oQnPRIcsbx0/FeunpEkvflqbfqwlOZcqShf97Xtxm3Q4MKTZg+6hlL xSXFvkbvV9O9bnzse4swygAv/oSWG/kaxD9+1yztPq1+0iCCbVC5/iFjPKnoSn0bHf f5TbBoIHPf4fust+pKL22drvzexUq1s8IqLPwYzXFeNKAF6dlhnS28mALH3iGkCyQt r3vHXTsyN0h2g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 4/5] x86/hyperv: Filter TLB targets before building hypercalls Reply-To: sashiko-reviews@lists.linux.dev To: "Naman Jain" Cc: linux-hyperv@vger.kernel.org In-Reply-To: <20261201043642.1054258-5-namjain@linux.microsoft.com> References: <20261201043642.1054258-1-namjain@linux.microsoft.com> <20261201043642.1054258-5-namjain@linux.microsoft.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 04:44:43 +0000 X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] x86/hyperv: missing Fixes tag for commit 209954cbc7d0 -- commit ffd1be8a9bff8ab7dcfc38d55cedf5571c8c7235 Author: Naman Jain > x86/hyperv: Filter TLB targets before building hypercalls > > SuperBench's eight-GPU PyTorch LSTM training on Azure MI300X VMs > regressed between Linux 6.8 and 7.0. Recreating DataLoader workers each > epoch caused host-to-GPU copy stalls and timeouts. Bisection identified > commit 209954cbc7d0 ("x86/mm/tlb: Update mm_cpumask lazily") as the cause > of the regression. > > That change leaves a CPU's bit set in mm_cpumask() even after the CPU > switches to another mm. Native flush callbacks remove these stale bits, > but successfully taking the Hyper-V hypercall path does not run those > callbacks. A CPU running another mm need not be in lazy TLB mode, so the > existing lazy-TLB check does not exclude it. If the mask includes all > present CPUs, hyperv_flush_tlb_multi() selects HV_FLUSH_ALL_PROCESSORS > before checking individual CPUs. > > Use should_flush_tlb() to build a per-CPU target mask before selecting > HV_FLUSH_ALL_PROCESSORS or either hypercall format. Keep the full mask > when freeing page tables, since should_flush_tlb() excludes lazy CPUs > that still need invalidation in that case. Retain the empty basic-mask > check because filtering can leave no targets. > > This patch does not affect when trimming is requested. > > Signed-off-by: Naman Jain [Severity: Low] Since this fixes a regression caused by lazy mm_cpumask updates, should the commit message include: Fixes: 209954cbc7d0 ("x86/mm/tlb: Update mm_cpumask lazily") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201043642.1054= 258-1-namjain@linux.microsoft.com?part=3D4