]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RISC-V: KVM: Enhance the logging check for mmu mapping
authorInochi Amaoto <inochiama@gmail.com>
Thu, 28 May 2026 11:38:39 +0000 (19:38 +0800)
committerAnup Patel <anup@brainfault.org>
Fri, 5 Jun 2026 14:48:32 +0000 (20:18 +0530)
commit851334760330dafa68ab8f371e804ea6ad56ff9a
treec0d3b598daaa524bef1f9bab91db71adca450138
parent6d4c17ed56201eec04247f4c72b4028cfbb0eba4
RISC-V: KVM: Enhance the logging check for mmu mapping

When enabling dirty ring, the dirty bitmap is disable, and the logging
check is always false as the RISC-V architecture does not select
"NEED_KVM_DIRTY_RING_WITH_BITMAP". Although the dirty log is recorded
since the write path already trying to add the dirty log, the logic for
logging check is broken and some side effect will occurs.

Enhance the logging check for mmu mapping so it can check both the dirty
ring and the dirty bitmap.

Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260528113840.2629186-1-inochiama@gmail.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/mmu.c