Skip to content

kvm: Some more trivial fixes for clear dirty log

Peter Xu kvm 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- fix patch 2 to use DIV_ROUND_UP
- add one more patch to obsolete the old cap, and introduce new [Paolo]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: Fix the bitmap range to copy during clear dirtyvirt/kvm/kvm_main.c+1 -10 replies
2/3KVM: Fix loop of clear dirty with possible off-by-onevirt/kvm/kvm_main.c+2 -20 replies
3/3KVM: Introduce KVM_CAP_MANUAL_DIRTY_LOG_PROTECT_2Documentation/virtual/kvm/api.txt include/uapi/linux/kvm.h tools/testing/selftests/kvm/dirty_log_test.c +1 more+15 -111 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] kvm: Some more trivial fixes for clear dirty log

v2:
- fix patch 2 to use DIV_ROUND_UP
- add one more patch to obsolete the old cap, and introduce new [Paolo]

Two issues I've noticed when I'm drafting the QEMU support of it. With these two patches applied the QEMU binary (with the clear dirty log supported [1]) can migrate correctly otherwise the migration can stall forever if with/after heavy memory workload.

Please have a look, thanks.

[1] https://github.com/xzpeter/qemu/tree/kvm-clear-dirty-log

Peter Xu (3):
KVM: Fix the bitmap range to copy during clear dirty
KVM: Fix loop of clear dirty with possible off-by-one
KVM: Introduce KVM_CAP_MANUAL_DIRTY_LOG_PROTECT_2

 Documentation/virtual/kvm/api.txt            | 13 ++++++++-----
 include/uapi/linux/kvm.h                     |  5 +++--
 tools/testing/selftests/kvm/dirty_log_test.c |  4 ++--
 virt/kvm/kvm_main.c                          | 10 +++++-----
 4 files changed, 18 insertions(+), 14 deletions(-)
Signature · 1 line
2.17.1