From: sashiko-bot@kernel.org
To: "Can Qi" <qican5708@163.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH v5] KVM: riscv: Allow rescheduling during G-stage unmap and teardown
Date: Thu, 03 Dec 2026 05:32:45 +0000 [thread overview]
Message-ID: <sashiko-outbox-247201@kernel.org> (raw)
In-Reply-To: <20261203051406.245031-1-qican5708@163.com>
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 <qican5708@163.com>
> 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.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203051406.245031-1-qican5708@163.com?part=1
prev parent reply other threads:[~2026-12-03 5:32 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 5:50 [PATCH] KVM: riscv: Allow rescheduling during G-stage unmap Can Qi
2026-11-23 5:50 ` Can Qi
2026-11-23 5:50 ` Can Qi
2026-11-23 6:24 ` sashiko-bot
2026-11-23 6:49 ` [PATCH v2] " Can Qi
2026-11-23 6:49 ` Can Qi
2026-11-23 6:49 ` Can Qi
2026-11-23 7:16 ` sashiko-bot
2026-11-23 7:29 ` [PATCH v3] " Can Qi
2026-11-23 7:29 ` Can Qi
2026-11-23 7:29 ` Can Qi
2026-11-30 8:26 ` Anup Patel
2026-11-30 8:26 ` Anup Patel
2026-11-30 8:26 ` Anup Patel
2026-11-30 10:26 ` [PATCH v4] KVM: riscv: Allow rescheduling during G-stage range unmap Can Qi
2026-11-30 10:26 ` Can Qi
2026-11-30 10:26 ` Can Qi
2026-12-02 14:50 ` Anup Patel
2026-12-02 14:50 ` Anup Patel
2026-12-02 14:50 ` Anup Patel
2026-12-03 5:14 ` [PATCH v5] KVM: riscv: Allow rescheduling during G-stage unmap and teardown Can Qi
2026-12-03 5:14 ` Can Qi
2026-12-03 5:14 ` Can Qi
2026-12-03 5:32 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-247201@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=qican5708@163.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.