summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJinyu Tang <tjytimi@163.com>2026-05-17 18:34:24 +0300
committerAnup Patel <anup@brainfault.org>2026-06-03 15:49:55 +0300
commitcc98f006c63c8e9f825ca5f89388fe5ace6a5c74 (patch)
tree248b14f8106e8a142c31b6aac7e8bab469642de2 /scripts
parent9090ba2e7cf8bf8a54879182db5665452d515bb0 (diff)
downloadlinux-cc98f006c63c8e9f825ca5f89388fe5ace6a5c74.tar.xz
KVM: riscv: Use an rwlock for mmu_lock
RISC-V KVM currently uses a spinlock for mmu_lock. That serializes all G-stage MMU operations, including permission-only updates that do not allocate or free page-table pages. Use KVM's rwlock form of mmu_lock, as x86 and arm64 already do. Keep the existing map, unmap and teardown paths on the write side. This prepares RISC-V for read-side handling of G-stage permission updates. Signed-off-by: Jinyu Tang <tjytimi@163.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260517153427.94889-3-tjytimi@163.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions