All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] KVM: arm64: Enable ring-based dirty memory tracking
@ 2022-09-16  4:51 ` Gavin Shan
  0 siblings, 0 replies; 40+ messages in thread
From: Gavin Shan @ 2022-09-16  4:51 UTC (permalink / raw)
  To: kvmarm
  Cc: maz, drjones, shan.gavin, kvm, linux-doc, catalin.marinas, corbet,
	linux-kernel, zhenyzha, will, linux-kselftest, bgardon, dmatlack,
	pbonzini, shuah, linux-arm-kernel

This series enables the ring-based dirty memory tracking for ARM64.
The feature has been available and enabled on x86 for a while. It
is beneficial when the number of dirty pages is small in a checkpointing
system or live migration scenario. More details can be found from
fb04a1eddb1a ("KVM: X86: Implement ring-based dirty memory tracking").

The generic part has been comprehensive, meaning there isn't too much
work, needed to extend it to ARM64.

- PATCH[1]   introduces KVM_REQ_RING_SOFT_FULL for x86
- PATCH[2]   enables the feature on ARM64
- PATCH[3-5] improves kvm/selftests/dirty_log_test

v1: https://lore.kernel.org/lkml/20220819005601.198436-1-gshan@redhat.com

Testing
=======

(1) kvm/selftests/dirty_log_test
(2) Live migration by QEMU

Changelog
=========
v2:
  * Introduce KVM_REQ_RING_SOFT_FULL                         (Marc)
  * Changelog improvement                                    (Marc)
  * Fix dirty_log_test without knowing host page size        (Drew)

Gavin Shan (5):
  KVM: x86: Introduce KVM_REQ_RING_SOFT_FULL
  KVM: arm64: Enable ring-based dirty memory tracking
  KVM: selftests: Use host page size to map ring buffer in
    dirty_log_test
  KVM: selftests: Clear dirty ring states between two modes in
    dirty_log_test
  KVM: selftests: Automate choosing dirty ring size in dirty_log_test

 Documentation/virt/kvm/api.rst               |  2 +-
 arch/arm64/include/uapi/asm/kvm.h            |  1 +
 arch/arm64/kvm/Kconfig                       |  1 +
 arch/arm64/kvm/arm.c                         |  8 +++
 arch/x86/kvm/x86.c                           |  5 +-
 include/linux/kvm_host.h                     |  1 +
 tools/testing/selftests/kvm/dirty_log_test.c | 53 ++++++++++++++------
 tools/testing/selftests/kvm/lib/kvm_util.c   |  2 +-
 virt/kvm/dirty_ring.c                        |  4 ++
 9 files changed, 59 insertions(+), 18 deletions(-)

-- 
2.23.0

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2022-09-19 16:18 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-16  4:51 [PATCH v2 0/5] KVM: arm64: Enable ring-based dirty memory tracking Gavin Shan
2022-09-16  4:51 ` Gavin Shan
2022-09-16  4:51 ` Gavin Shan
2022-09-16  4:51 ` [PATCH v2 1/5] KVM: x86: Introduce KVM_REQ_RING_SOFT_FULL Gavin Shan
2022-09-16  4:51   ` Gavin Shan
2022-09-16  4:51   ` Gavin Shan
2022-09-16 18:09   ` Peter Xu
2022-09-16 18:09     ` Peter Xu
2022-09-16 18:09     ` Peter Xu
2022-09-18  9:00     ` Marc Zyngier
2022-09-18  9:00       ` Marc Zyngier
2022-09-18  9:00       ` Marc Zyngier
2022-09-18 23:58       ` Gavin Shan
2022-09-18 23:58         ` Gavin Shan
2022-09-18 23:58         ` Gavin Shan
2022-09-19  9:22         ` Marc Zyngier
2022-09-19  9:22           ` Marc Zyngier
2022-09-19  9:22           ` Marc Zyngier
2022-09-19 16:17         ` Peter Xu
2022-09-19 16:17           ` Peter Xu
2022-09-19 16:17           ` Peter Xu
2022-09-16  4:51 ` [PATCH v2 2/5] KVM: arm64: Enable ring-based dirty memory tracking Gavin Shan
2022-09-16  4:51   ` Gavin Shan
2022-09-16  4:51   ` Gavin Shan
2022-09-17 15:10   ` kernel test robot
2022-09-17 15:10     ` kernel test robot
2022-09-17 15:10     ` kernel test robot
2022-09-19  1:27     ` Gavin Shan
2022-09-19  1:27       ` Gavin Shan
2022-09-19  1:27       ` Gavin Shan
2022-09-19  1:27       ` Gavin Shan
2022-09-16  4:51 ` [PATCH v2 3/5] KVM: selftests: Use host page size to map ring buffer in dirty_log_test Gavin Shan
2022-09-16  4:51   ` Gavin Shan
2022-09-16  4:51   ` Gavin Shan
2022-09-16  4:51 ` [PATCH v2 4/5] KVM: selftests: Clear dirty ring states between two modes " Gavin Shan
2022-09-16  4:51   ` Gavin Shan
2022-09-16  4:51   ` Gavin Shan
2022-09-16  4:51 ` [PATCH v2 5/5] KVM: selftests: Automate choosing dirty ring size " Gavin Shan
2022-09-16  4:51   ` Gavin Shan
2022-09-16  4:51   ` Gavin Shan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.