[PATCH v2 0/5] kvm: selftest: add dirty logging test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



v2:
- tune the parameters a bit (32 loops, 10ms interval) to let the test
  run ~1sec [Paolo]
- pass in extra mem pages in vm_create_default() [Paolo]
- add simple statistics on bits checked
- allow to specify parameters via argc/argv
- free bmap_track, which I forgot; rename to host_bmap_track

Add a simple test for existing dirty logging facility.

Please have a look, thanks.

Peter Xu (5):
  tools: introduce test_and_clear_bit
  kvm: selftest: unify the guest port macros
  kvm: selftest: include the tools headers
  kvm: selftest: pass in extra memory when create vm
  kvm: selftest: add dirty logging test

 tools/include/linux/bitmap.h                  |  17 +
 tools/testing/selftests/kvm/Makefile          |   5 +-
 .../selftests/kvm/cr4_cpuid_sync_test.c       |  32 +-
 tools/testing/selftests/kvm/dirty_logging.c   | 305 ++++++++++++++++++
 .../testing/selftests/kvm/include/kvm_util.h  |  46 ++-
 .../testing/selftests/kvm/include/test_util.h |   2 -
 tools/testing/selftests/kvm/lib/kvm_util.c    |  58 ++++
 tools/testing/selftests/kvm/lib/x86.c         |  18 +-
 tools/testing/selftests/kvm/set_sregs_test.c  |   2 +-
 tools/testing/selftests/kvm/state_test.c      |  32 +-
 tools/testing/selftests/kvm/sync_regs_test.c  |  21 +-
 .../selftests/kvm/vmx_tsc_adjust_test.c       |  43 +--
 12 files changed, 475 insertions(+), 106 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/dirty_logging.c

-- 
2.17.1




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux