diff options
| author | Xie Bo <xb@ultrarisc.com> | 2026-08-10 13:15:43 +0800 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-09-15 18:55:51 +0530 |
| commit | ed54fdb460a6e81d5f8f38388d1f10b385dd4a58 (patch) | |
| tree | 557728f1e18c5d99dcb0828b6bf39638eed2e629 /tools/perf/scripts/python | |
| parent | 8ae12ccaec6ec74945d8c1ef39f2c1b8df779abc (diff) | |
| download | linux-next-ed54fdb460a6e81d5f8f38388d1f10b385dd4a58.tar.gz linux-next-ed54fdb460a6e81d5f8f38388d1f10b385dd4a58.zip | |
RISC-V: KVM: Release unused page after MMU invalidation
If an MMU invalidation races with a G-stage fault, the fault handler skips
installing the page but leaves ret set to zero. As a result,
kvm_release_faultin_page() treats the page as used and can unnecessarily
mark it dirty.
Track the invalidation retry separately and release the page as unused,
while preserving the existing return value so that the vCPU retries the
fault.
Fixes: 2ed90cb0938a ("KVM: RISC-V: Retry fault if vma_lookup() results become invalid")
Cc: stable@vger.kernel.org
Signed-off-by: Xie Bo <xb@ultrarisc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260810051544.3953925-2-xb@ultrarisc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
