mbox series

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

Message ID 20180822072000.24471-1-peterx@redhat.com (mailing list archive)
Headers show
Series kvm: selftest: add dirty logging test | expand

Message

Peter Xu Aug. 22, 2018, 7:19 a.m. UTC
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

Comments

Paolo Bonzini Aug. 22, 2018, 9:01 a.m. UTC | #1
On 22/08/2018 09:19, Peter Xu wrote:
> 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.

Queued, only renaming the test to dirty_log_test.c.

Paolo

> 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
>