Skip to content

KVM: selftests: Cleanups

Andrew Jones kvm 1 version Applied

Status from this message: Queued (or overridden by patches already in queue) patches 1-8, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/11KVM: selftests: Add x86_64/tsc_msrs_test to .gitignoretools/testing/selftests/kvm/.gitignore+1 -00 replies
2/11KVM: selftests: Drop pointless vm_create wrappertools/testing/selftests/kvm/demand_paging_test.c tools/testing/selftests/kvm/dirty_log_test.c tools/testing/selftests/kvm/include/kvm_util.h +1 more+3 -90 replies
3/11KVM: selftests: Always clear dirty bitmap after iterationtools/testing/selftests/kvm/dirty_log_test.c+1 -10 replies
4/11KVM: selftests: Use a single binary for dirty/clear log testtools/testing/selftests/kvm/.gitignore tools/testing/selftests/kvm/Makefile tools/testing/selftests/kvm/clear_dirty_log_test.c +1 more+156 -400 replies
5/11KVM: selftests: Introduce after_vcpu_run hook for dirty log testtools/testing/selftests/kvm/dirty_log_test.c+24 -120 replies
6/11KVM: selftests: Make the per vcpu memory size globaltools/testing/selftests/kvm/demand_paging_test.c+17 -190 replies
7/11KVM: selftests: Make the number of vcpus globaltools/testing/selftests/kvm/demand_paging_test.c+20 -200 replies
8/11KVM: selftests: Factor out guest mode codetools/testing/selftests/kvm/Makefile tools/testing/selftests/kvm/demand_paging_test.c tools/testing/selftests/kvm/dirty_log_test.c +2 more+150 -1590 replies
9/11KVM: selftests: Make vm_create_default commontools/testing/selftests/kvm/include/aarch64/processor.h tools/testing/selftests/kvm/include/s390x/processor.h tools/testing/selftests/kvm/include/x86_64/processor.h +4 more+37 -715 replies
10/11KVM: selftests: Introduce vm_create_[default_]vcpustools/testing/selftests/kvm/include/kvm_util.h tools/testing/selftests/kvm/lib/kvm_util.c+41 -50 replies
11/11KVM: selftests: Remove create_vmtools/testing/selftests/kvm/demand_paging_test.c tools/testing/selftests/kvm/dirty_log_test.c tools/testing/selftests/kvm/include/kvm_util.h +1 more+37 -1130 replies

Reviews trailers per patch

3 of 11 patches have a Reviewed-by or Acked-by.

PatchAndrew JonesChristian Borntraeger
SeriesT-b
1/11
2/11
3/11R-b
4/11R-b
5/11R-b
6/11
7/11
8/11
9/11
10/11
11/11

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

Read the v1 thread

Cover letter [PATCH 00/11] KVM: selftests: Cleanups

This series attempts to clean up demand_paging_test and dirty_log_test by factoring out common code, creating some new API along the way. It's main goal is to prepare for even more factoring that Ben and Peter want to do. The series would have a nice negative diff stat, but it also picks up a few of Peter's patches for his new dirty log test. So, the +/- diff stat is close to equal. It's not as close as an electoral vote count, but it's close.

I've tested on x86 and AArch64 (one config each), but not s390x.

Thanks,
drew

Andrew Jones (8):
KVM: selftests: Add x86_64/tsc_msrs_test to .gitignore
KVM: selftests: Drop pointless vm_create wrapper
KVM: selftests: Make the per vcpu memory size global
KVM: selftests: Make the number of vcpus global
KVM: selftests: Factor out guest mode code
KVM: selftests: Make vm_create_default common
KVM: selftests: Introduce vm_create_[default_]vcpus
KVM: selftests: Remove create_vm

Peter Xu (3):
KVM: selftests: Always clear dirty bitmap after iteration
KVM: selftests: Use a single binary for dirty/clear log test
KVM: selftests: Introduce after_vcpu_run hook for dirty log test

 tools/testing/selftests/kvm/.gitignore        |   2 +-
 tools/testing/selftests/kvm/Makefile          |   4 +-
 .../selftests/kvm/clear_dirty_log_test.c      |   6 -
 .../selftests/kvm/demand_paging_test.c        | 213 +++-------
 tools/testing/selftests/kvm/dirty_log_test.c  | 372 ++++++++++--------
 .../selftests/kvm/include/aarch64/processor.h |   3 +
 .../selftests/kvm/include/guest_modes.h       |  21 +
 .../testing/selftests/kvm/include/kvm_util.h  |  20 +-
 .../selftests/kvm/include/s390x/processor.h   |   4 +
 .../selftests/kvm/include/x86_64/processor.h  |   4 +
 .../selftests/kvm/lib/aarch64/processor.c     |  17 -
 tools/testing/selftests/kvm/lib/guest_modes.c |  70 ++++
 tools/testing/selftests/kvm/lib/kvm_util.c    |  62 ++-
 .../selftests/kvm/lib/s390x/processor.c       |  22 --
 .../selftests/kvm/lib/x86_64/processor.c      |  32 --
 15 files changed, 445 insertions(+), 407 deletions(-)
 delete mode 100644 tools/testing/selftests/kvm/clear_dirty_log_test.c
 create mode 100644 tools/testing/selftests/kvm/include/guest_modes.h
 create mode 100644 tools/testing/selftests/kvm/lib/guest_modes.c
Signature · 1 line
2.26.2