summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSeungJu Cheon <suunj1331@gmail.com>2026-10-16 19:14:58 +0900
committerAnup Patel <anup@brainfault.org>2026-11-16 18:06:19 +0530
commitf4eda00f503ed260b0269dbfe59e25ac04243f3c (patch)
treef74eb5fa55ade07a423f7f4fc34c06b4483501e9 /tools/perf/scripts/python/bin
parent403daa3414a6ad1378082f97b3a8bec08a50c641 (diff)
KVM: riscv: Set Accessed bit in dirty-log write fault fast path
kvm_riscv_mmu_dirty_log_write_fault_fast() considers a leaf with W and D set already handled, even if aging has cleared its A bit. On hardware that faults when A is clear, the fast path returns true without setting A and skips the slow path that would set it. The guest retries the same store, but A is still clear, so it faults again. This repeats indefinitely, preventing the guest from making progress. Host reclaim or page_idle can trigger this while dirty logging is enabled, potentially hanging vCPUs during live migration. Require _PAGE_ACCESSED in addition to W and D before treating the fault as handled, and set A along with W and D. The existing cmpxchg loop retries if aging changes the PTE before the update. Fixes: 7705be59eb2d ("KVM: riscv: Fast-path dirty logging write faults") Cc: stable@vger.kernel.org # 7.2+ Signed-off-by: SeungJu Cheon <suunj1331@gmail.com> Reviewed-by: Jinyu Tang <jinyu.tang@linux.dev> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20261016101458.221648-1-suunj1331@gmail.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions