[PATCH v3 0/3] RISC-V: KVM: Fix hugepage mapping handling during dirty logging
wang.yechao255 at zte.com.cn
wang.yechao255 at zte.com.cn
Sun Mar 15 23:12:34 PDT 2026
From: Wang Yechao <wang.yechao255 at zte.com.cn>
This series fixes an issue where dirty logging fails to work correctly
with huge pages.
v2 -> v3:
- patch01: Add reference to the specific commit being fixed
- patch02: Fill the page table entry before replacing the ptep value
- patch03: Add handling for dirty logging disable to avoid memory leak
- Link to v2:
https://lore.kernel.org/linux-riscv/20260304172139131ChDubMSpGDUB03lY4UCbK@zte.com.cn/T/#t
v1 -> v2:
- fix the lost write protection on huge pages
- split huge pages before handling the write protection fault.
- Link to v1:
https://lore.kernel.org/linux-riscv/20260226172245358qVZavIykLL2QC0KoqTO-I@zte.com.cn/T/#u
Wang Yechao (3):
RISC-V: KVM: Fix lost write protection on huge pages during dirty logging
RISC-V: KVM: Allow splitting huge pages to arbitrary level
RISC-V: KVM: Split huge pages during fault handling for dirty logging
arch/riscv/include/asm/kvm_gstage.h | 4 +
arch/riscv/kvm/gstage.c | 132 +++++++++++++++++++++++++++-
2 files changed, 132 insertions(+), 4 deletions(-)
--
2.27.0
More information about the linux-riscv
mailing list