Skip to content

RISC-V: KVM: Fix hugepage mapping handling during dirty logging

[email protected] kvm kvm-riscv linux-riscv lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v33 patches 3 repliesSuperseded
  3. v23 patches 1 replySuperseded

Changes in v4 from the cover letter

- Squash PATCH2 into PATCH3, and adjust according to Anup's comments.
- Link to v3:
https://lore.kernel.org/linux-riscv/[email protected]/T/#t

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2RISC-V: KVM: Fix lost write protection on huge pages during dirty loggingarch/riscv/kvm/gstage.c+3 -40 replies
2/2RISC-V: KVM: Split huge pages during fault handling for dirty loggingarch/riscv/include/asm/kvm_gstage.h arch/riscv/kvm/gstage.c+130 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchNutty LiuAnup Patel
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] RISC-V: KVM: Fix hugepage mapping handling during dirty logging

From: Wang Yechao <[email protected]>

This series fixes an issue where dirty logging fails to work correctly with huge pages.

v3 -> v4:
- Squash PATCH2 into PATCH3, and adjust according to Anup's comments.
- Link to v3:
https://lore.kernel.org/linux-riscv/[email protected]/T/#t

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 in gstage page tables
- Link to v2:
https://lore.kernel.org/linux-riscv/[email protected]/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/[email protected]/T/#u

Wang Yechao (2):
RISC-V: KVM: Fix lost write protection on huge pages during dirty logging
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             | 133 +++++++++++++++++++++++++++-
 2 files changed, 133 insertions(+), 4 deletions(-)
Signature · 1 line
2.47.3