Skip to content

KVM: selftests: Fixes and cleanups for dirty_log_test

Sean Christopherson kvm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest20 patches 2 repliesIn review
  2. v120 patches 28 repliesSuperseded

Changes in v2 from the cover letter

- Collect reviews. [Maxim]
- Expand a few changelogs to be more explicit about the effects. [Maxim]
- Print the number of writes from each iteration. [Maxim]
- Fix goofs in the last patch (stale message and changelog). [Maxim]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20KVM: selftests: Support multiple write retires in dirty_log_testtools/testing/selftests/kvm/dirty_log_test.c+50 -20 replies
2/20KVM: selftests: Sync dirty_log_test iteration to guest *before* resumingtools/testing/selftests/kvm/dirty_log_test.c+2 -20 replies
3/20KVM: selftests: Drop signal/kick from dirty ring testcasetools/testing/selftests/kvm/dirty_log_test.c+15 -910 replies
4/20KVM: selftests: Drop stale srandom() initialization from dirty_log_testtools/testing/selftests/kvm/dirty_log_test.c+0 -20 replies
5/20KVM: selftests: Precisely track number of dirty/clear pages for each iterationtools/testing/selftests/kvm/dirty_log_test.c+9 -90 replies
6/20KVM: selftests: Read per-page value into local var when verifying dirty_log_testtools/testing/selftests/kvm/dirty_log_test.c+7 -90 replies
7/20KVM: selftests: Continuously reap dirty ring while vCPU is runningtools/testing/selftests/kvm/dirty_log_test.c+46 -170 replies
8/20KVM: selftests: Limit dirty_log_test's s390x workaround to s390xtools/testing/selftests/kvm/dirty_log_test.c+2 -00 replies
9/20KVM: selftests: Honor "stop" request in dirty ring testtools/testing/selftests/kvm/dirty_log_test.c+10 -20 replies
10/20KVM: selftests: Keep dirty_log_test vCPU in guest until it needs to stoptools/testing/selftests/kvm/dirty_log_test.c+22 -210 replies
11/20KVM: selftests: Post to sem_vcpu_stop if and only if vcpu_stop is truetools/testing/selftests/kvm/dirty_log_test.c+4 -140 replies
12/20KVM: selftests: Use continue to handle all "pass" scenarios in dirty_log_testtools/testing/selftests/kvm/dirty_log_test.c+5 -80 replies
13/20KVM: selftests: Print (previous) last_page on dirty page value mismatchtools/testing/selftests/kvm/dirty_log_test.c+8 -50 replies
14/20KVM: selftests: Collect *all* dirty entries in each dirty_log_test iterationtools/testing/selftests/kvm/dirty_log_test.c+45 -1040 replies
15/20KVM: sefltests: Verify value of dirty_log_test last page isn't bogustools/testing/selftests/kvm/dirty_log_test.c+3 -20 replies
16/20KVM: selftests: Ensure guest writes min number of pages in dirty_log_testtools/testing/selftests/kvm/dirty_log_test.c+36 -40 replies
17/20KVM: selftests: Tighten checks around prev iter's last dirty page in ringtools/testing/selftests/kvm/dirty_log_test.c+15 -70 replies
18/20KVM: selftests: Set per-iteration variables at the start of each iterationtools/testing/selftests/kvm/dirty_log_test.c+17 -260 replies
19/20KVM: selftests: Fix an off-by-one in the number of dirty_log_test iterationstools/testing/selftests/kvm/dirty_log_test.c+1 -10 replies
20/20KVM: selftests: Allow running a single iteration of dirty_log_testtools/testing/selftests/kvm/dirty_log_test.c+1 -10 replies

Reviews trailers per patch

10 of 20 patches have a Reviewed-by or Acked-by.

PatchMaxim Levitsky
1/20
2/20
3/20
4/20R-b
5/20
6/20R-b
7/20R-b
8/20
9/20
10/20R-b
11/20
12/20R-b
13/20R-b
14/20
15/20R-b
16/20R-b
17/20R-b
18/20
19/20R-b
20/20

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

Read the v2 thread

Cover letter [PATCH v2 00/20] KVM: selftests: Fixes and cleanups for dirty_log_test

Fix a variety of flaws and false failures/passes in dirty_log_test, and drop code/behavior that adds complexity while adding little-to-no benefit.

Lots of details in the changelogs, and a partial list of complaints[1] in Maxim's original thread[2].

[1] https://lore.kernel.org/all/[email protected]
[2] https://lore.kernel.org/all/[email protected]

v2:
- Collect reviews. [Maxim]
- Expand a few changelogs to be more explicit about the effects. [Maxim]
- Print the number of writes from each iteration. [Maxim]
- Fix goofs in the last patch (stale message and changelog). [Maxim]

v1: https://lore.kernel.org/all/[email protected]

Maxim Levitsky (2):
KVM: selftests: Support multiple write retires in dirty_log_test
KVM: selftests: Limit dirty_log_test's s390x workaround to s390x

Sean Christopherson (18):
KVM: selftests: Sync dirty_log_test iteration to guest *before*
resuming
KVM: selftests: Drop signal/kick from dirty ring testcase
KVM: selftests: Drop stale srandom() initialization from
dirty_log_test
KVM: selftests: Precisely track number of dirty/clear pages for each
iteration
KVM: selftests: Read per-page value into local var when verifying
dirty_log_test
KVM: selftests: Continuously reap dirty ring while vCPU is running
KVM: selftests: Honor "stop" request in dirty ring test
KVM: selftests: Keep dirty_log_test vCPU in guest until it needs to
stop
KVM: selftests: Post to sem_vcpu_stop if and only if vcpu_stop is true
KVM: selftests: Use continue to handle all "pass" scenarios in
dirty_log_test
KVM: selftests: Print (previous) last_page on dirty page value
mismatch
KVM: selftests: Collect *all* dirty entries in each dirty_log_test
iteration
KVM: sefltests: Verify value of dirty_log_test last page isn't bogus
KVM: selftests: Ensure guest writes min number of pages in
dirty_log_test
KVM: selftests: Tighten checks around prev iter's last dirty page in
ring
KVM: selftests: Set per-iteration variables at the start of each
iteration
KVM: selftests: Fix an off-by-one in the number of dirty_log_test
iterations
KVM: selftests: Allow running a single iteration of dirty_log_test

 tools/testing/selftests/kvm/dirty_log_test.c | 521 +++++++++----------
 1 file changed, 246 insertions(+), 275 deletions(-)

base-commit: 10485c4bc3caad3e93a6a4e99003e8ffffcd826a

Signature · 1 line
2.47.1.613.gc27f4b7a9f-goog