VM: selftests: Hugepage fixes and cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 19 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | KVM: selftests: Explicitly state indicies for vm_guest_mode_params arraytools/ | +7 | 1 reply | |
| 2/15 | KVM: selftests: Expose align() helpers to teststools/ tools/ | +16 | 1 reply | |
| 3/15 | KVM: selftests: Align HVA for HugeTLB-backed memslotstools/ | +4 | 3 replies | |
| 4/15 | KVM: selftests: Force stronger HVA alignment (1gb) for hugepagestools/ tools/ | +14 | 2 replies | |
| 5/15 | KVM: selftests: Require GPA to be aligned when backed by hugepagestools/ tools/ | +11 | 1 reply | |
| 6/15 | KVM: selftests: Use shorthand local var to access struct perf_tests_argstools/ | +19 | 1 reply | |
| 7/15 | KVM: selftests: Capture per-vCPU GPA in perf_test_vcpu_argstools/ tools/ | +5 | 1 reply | |
| 8/15 | KVM: selftests: Use perf util's per-vCPU GPA/pages in demand paging testtools/ | +5 | 1 reply | |
| 9/15 | KVM: selftests: Move per-VM GPA into perf_test_argstools/ tools/ tools/ | +13 | 5 replies | |
| 10/15 | KVM: selftests: Remove perf_test_args.host_page_sizetools/ tools/ tools/ +1 more | +7 | 1 reply | |
| 11/15 | KVM: selftests: Create VM with adjusted number of guest pages for perf teststools/ | +6 | 1 reply | |
| 12/15 | KVM: selftests: Fill per-vCPU struct during "perf_test" VM creationtools/ tools/ tools/ +2 more | +49 | 0 replies | |
| 13/15 | KVM: selftests: Sync perf_test_args to guest during VM creationtools/ tools/ tools/ +2 more | +10 | 0 replies | |
| 14/15 | KVM: selftests: Track size of per-VM memslot in perf_test_argstools/ tools/ | +6 | 0 replies | |
| 15/15 | KVM: selftests: Get rid of gorilla math in memslots modification testtools/ | +1 | 0 replies |
Reviews trailers per patch
9 of 15 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Ben Gardon | Andrew Jones |
|---|---|---|
| Series | R-b | |
| 1/15 | R-b | |
| 2/15 | R-b | |
| 3/15 | R-b | |
| 4/15 | ||
| 5/15 | ||
| 6/15 | R-b | |
| 7/15 | R-b | |
| 8/15 | R-b | |
| 9/15 | R-b | |
| 10/15 | R-b | |
| 11/15 | R-b | |
| 12/15 | ||
| 13/15 | ||
| 14/15 | ||
| 15/15 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/15] VM: selftests: Hugepage fixes and cleanups
Fix hugepage bugs in the KVM selftests that specifically affect dirty logging and demand paging tests. Found while attempting to verify KVM changes/fixes related to hugepages and dirty logging (patches incoming in a separate series).
Clean up the perf_test_args util on top of the hugepage fixes to clarify what "page size" means, and to improve confidence in the code doing what it thinks it's doing. In a few cases, users of perf_test_args were duplicating (approximating?) calculations made by perf_test_args, and it wasn't obvious that both pieces of code were guaranteed to end up with the same result.
Sean Christopherson (15):
KVM: selftests: Explicitly state indicies for vm_guest_mode_params
array
KVM: selftests: Expose align() helpers to tests
KVM: selftests: Align HVA for HugeTLB-backed memslots
KVM: selftests: Force stronger HVA alignment (1gb) for hugepages
KVM: selftests: Require GPA to be aligned when backed by hugepages
KVM: selftests: Use shorthand local var to access struct
perf_tests_args
KVM: selftests: Capture per-vCPU GPA in perf_test_vcpu_args
KVM: selftests: Use perf util's per-vCPU GPA/pages in demand paging
test
KVM: selftests: Move per-VM GPA into perf_test_args
KVM: selftests: Remove perf_test_args.host_page_size
KVM: selftests: Create VM with adjusted number of guest pages for perf
tests
KVM: selftests: Fill per-vCPU struct during "perf_test" VM creation
KVM: selftests: Sync perf_test_args to guest during VM creation
KVM: selftests: Track size of per-VM memslot in perf_test_args
KVM: selftests: Get rid of gorilla math in memslots modification test
.../selftests/kvm/demand_paging_test.c | 39 ++--- .../selftests/kvm/dirty_log_perf_test.c | 10 +- .../testing/selftests/kvm/include/kvm_util.h | 28 ++++ .../selftests/kvm/include/perf_test_util.h | 18 +-- tools/testing/selftests/kvm/lib/kvm_util.c | 36 ++--- .../selftests/kvm/lib/perf_test_util.c | 139 ++++++++++-------- .../kvm/memslot_modification_stress_test.c | 16 +- 7 files changed, 145 insertions(+), 141 deletions(-)
Signature · 1 line
2.30.0.478.g8a0d178c01-goog