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=1796275965; b=i11K2KEKVfFQ1GE8SGbxTKDQmHOvCq8fmw6pC6p7qcKr0MBnaZfQ7+kRJI9y1z8TLROh ebO0RJLxhFezdAOgFHfIHmsNNnYNf4uEmoVmEdOTzRvTT8CDRk7uJ686BqJew30d5vRR/ FAMgNsEaqtIvzXAnDHALmlzcYmcmGl4MRq0I3PIPqawba6WqBTIlBAraIWSNdNPcJ0Kzi uBYHHcpg9p5yH4kMQvxUWgdarzXypIdxCW+JIcrbFQ6L4JdPbuKA+u17gLWZ7+/za+0Bf wKn68yrIrXbVgM6T9o848PEKln+CULL1QDwggGMhPDfUEddrw22yrvtDXMPqB8UMP2Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796275965; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=z7mk9q8JmXNncK8nZdeCFhgivt7TnvrAB02VREs0aq8=; b=QGfM3+/27CZ1h8zolv91XD/42uCEixllKwjTDl90kpAP3RM0/UlE7+q6VfQiN79XUBfQ awt7o6lg8Vok4C18+trwVhqMS39VTi2Ho6vGs0EuuODUBsfIXh0ebrFB19XBVvzNY1ZCN LjcETZdgxacntecaeQGhLyKc3PfyEjtmdJjdczRQfeLi6u183TNHZZEl0Mpx6regcuRex u87+qwR4aRZMEZtr9kgmA+mubBxsXThaJ28QnfCJpzlEJTzkuJhSdwaN72TQfdrk7ILfF o0Mxtuc68IOPnqFgONV1c+2g0EP673tRxlUdgU2qLsMmI24CbATnhZWYfnWWFL06j+A== 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="nsUji/Ul"; 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 CE413606A322 for ; Thu, 3 Dec 2026 05:32:45 +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=nsUji/Ul Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BD7B1F000C1; Thu, 3 Dec 2026 05:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796275965; bh=z7mk9q8JmXNncK8nZdeCFhgivt7TnvrAB02VREs0aq8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=nsUji/UlzKzK/GVjhFOf0F4GWqY345XEaFKVHgogaJjGb9oZZ7P1Y7cjsX4Lid0DN NeDPyOdlJCnW3ySmqXMJeYGF6chNcSyv+PUMAsn3IdxIQjdA2aKSpUZM5cYpfNEG55 yyB1ZZUSdMpdFoQSxm4NzgJnbRYAX0BVIH8CDHiLTb5ouKb6IulhefbkBcw3/jjKe4 4Elayzy17wMuDIO8LOLusrz07o6AZSZvtJ54MTmTccBVKWrXtoimbMvSF1YkCwUa8L nex2YPH4Lv9hDWtMxVFDxBPnx6sGzSUUTGdqB5PIcRXD8NJ23eX4M5p6kwRXpo/jsh zYysXuOn4AnGw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5] KVM: riscv: Allow rescheduling during G-stage unmap and teardown Reply-To: sashiko-reviews@lists.linux.dev To: "Can Qi" Cc: kvm@vger.kernel.org In-Reply-To: <20261203051406.245031-1-qican5708@163.com> References: <20261203051406.245031-1-qican5708@163.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 05:32:45 +0000 X-Mailing-List: kvm@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: - [High] KVM: riscv: commit message is missing a Signed-off-by trailer -- commit 5d0031b037717ca6a07783729d4f105732d072a9 Author: Can Qi > KVM: riscv: Allow rescheduling during G-stage unmap and teardown > > Removing a populated memslot or destroying a VM can walk a large > G-stage range while holding mmu_lock. Limit the time spent holding the > lock continuously and let other tasks run while tearing down a VM. > > Process sleepable memslot and MMU notifier unmaps in PMD-sized chunks. > Advance past holes and fully covered block mappings, even when they > extend past a chunk. Finish any pending remote TLB invalidations before > yielding the lock, and read the current root under the lock before > walking the next chunk. Flush the remaining batch before returning. > > Detach the root and request the full VM TLB flush under mmu_lock > before starting teardown. The VM is being rolled back during setup, > its owner mm is exiting, or the last KVM reference has been dropped. > No vCPU can still run with the detached root in these cases. > > Recursively clear the old tree outside mmu_lock and check for > rescheduling as page tables are removed. Keep RCU-delayed freeing for > the root and its descendants so lockless aging walkers can finish. > > Earlier revisions were co-developed with Quan Zhou. Codex assisted > with implementation and QEMU validation. Sashiko identified the > redundant final range flush during review. > > Link: https://lore.kernel.org/r/20251113052452.975081-4-rananta@google.com [Severity: High] The commit message is missing a Signed-off-by trailer. A valid Signed-off-by line certifying the Developer Certificate of Origin is required per Documentation/process/submitting-patches.rst before this patch can be merged. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203051406.2450= 31-1-qican5708@163.com?part=3D1