Skip to content

KVM: selftests: Add nested support to dirty_log_perf_test

David Matlack kvm 4 versions – Applied

Status from this message: Queued, thanks! (It will be in either -rc2 or -rc3).

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 1 replyApplied
  2. v310 patches 0 repliesSuperseded
  3. v210 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v19 patches14 repliesSuperseded

Changes in v4 from the cover letter

- Add patch 11 to support for hosts with MAXPHYADDR > 48 [Sean]

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/11KVM: selftests: Replace x86_page_size with PG_LEVEL_XXtools/testing/selftests/kvm/include/x86_64/processor.h tools/testing/selftests/kvm/lib/x86_64/processor.c tools/testing/selftests/kvm/max_guest_memory_test.c +1 more+31 -240 replies
2/11KVM: selftests: Add option to create 2M and 1G EPT mappingstools/testing/selftests/kvm/lib/x86_64/vmx.c+60 -500 replies
3/11KVM: selftests: Drop stale function parameter comment for nested_map()tools/testing/selftests/kvm/lib/x86_64/vmx.c+0 -10 replies
4/11KVM: selftests: Refactor nested_map() to specify target leveltools/testing/selftests/kvm/lib/x86_64/vmx.c+12 -40 replies
5/11KVM: selftests: Move VMX_EPT_VPID_CAP_AD_BITS to vmx.htools/testing/selftests/kvm/include/x86_64/processor.h tools/testing/selftests/kvm/include/x86_64/vmx.h+2 -30 replies
6/11KVM: selftests: Add a helper to check EPT/VPID capabilitiestools/testing/selftests/kvm/lib/x86_64/vmx.c+6 -10 replies
7/11KVM: selftests: Drop unnecessary rule for STATIC_LIBStools/testing/selftests/kvm/Makefile+0 -10 replies
8/11KVM: selftests: Link selftests directly with lib object filestools/testing/selftests/kvm/Makefile+4 -70 replies
9/11KVM: selftests: Clean up LIBKVM files in Makefiletools/testing/selftests/kvm/Makefile+31 -50 replies
10/11KVM: selftests: Add option to run dirty_log_perf_test vCPUs in L2tools/testing/selftests/kvm/Makefile tools/testing/selftests/kvm/dirty_log_perf_test.c tools/testing/selftests/kvm/include/perf_test_util.h +5 more+182 -80 replies
11/11KVM: selftests: Restrict test region to 48-bit physical addresses when using nestedtools/testing/selftests/kvm/lib/perf_test_util.c+15 -30 replies

Reviews trailers per patch

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

PatchPeter Xu
1/11
2/11
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11
8/11R-b
9/11R-b
10/11
11/11

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

Read the v4 thread

Cover letter [PATCH v4 00/11] KVM: selftests: Add nested support to dirty_log_perf_test

This series adds support for taking any perf_test_util-based test and configuring it to run vCPUs in L2 instead of L1, and adds an option to dirty_log_perf_test to enable it.

This series was used to collect the performance data for eager page spliting for nested MMUs [1].

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

v4:
- Add patch 11 to support for hosts with MAXPHYADDR > 48 [Sean]

v3: https://lore.kernel.org/kvm/[email protected]/
- Only identity map a subset of the nGPA space [Sean, Peter]
- Fail if nested_paddr contains more than 48 bits [me]
- Move patch to delete all rule earlier [Peter]

v2: https://lore.kernel.org/kvm/[email protected]/
- Collect R-b tags from Peter.
- Use level macros instead of raw numbers [Peter]
- Remove "upper" from function name [Peter]
- Bring back setting the A/D bits on EPT PTEs [Peter]
- Drop "all" rule from Makefile [Peter]
- Reserve memory for EPT pages [Peter]
- Fix off-by-one error in nested_map_all_1g() [me]

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

David Matlack (11):
KVM: selftests: Replace x86_page_size with PG_LEVEL_XX
KVM: selftests: Add option to create 2M and 1G EPT mappings
KVM: selftests: Drop stale function parameter comment for nested_map()
KVM: selftests: Refactor nested_map() to specify target level
KVM: selftests: Move VMX_EPT_VPID_CAP_AD_BITS to vmx.h
KVM: selftests: Add a helper to check EPT/VPID capabilities
KVM: selftests: Drop unnecessary rule for STATIC_LIBS
KVM: selftests: Link selftests directly with lib object files
KVM: selftests: Clean up LIBKVM files in Makefile
KVM: selftests: Add option to run dirty_log_perf_test vCPUs in L2
KVM: selftests: Restrict test region to 48-bit physical addresses when
using nested

 tools/testing/selftests/kvm/Makefile          |  49 ++++--
 .../selftests/kvm/dirty_log_perf_test.c       |  10 +-
 .../selftests/kvm/include/perf_test_util.h    |   9 ++
 .../selftests/kvm/include/x86_64/processor.h  |  25 +--
 .../selftests/kvm/include/x86_64/vmx.h        |   6 +
 .../selftests/kvm/lib/perf_test_util.c        |  53 ++++++-
 .../selftests/kvm/lib/x86_64/perf_test_util.c | 112 +++++++++++++
 .../selftests/kvm/lib/x86_64/processor.c      |  33 ++--
 tools/testing/selftests/kvm/lib/x86_64/vmx.c  | 149 +++++++++++-------
 .../selftests/kvm/max_guest_memory_test.c     |   2 +-
 .../selftests/kvm/x86_64/mmu_role_test.c      |   2 +-
 11 files changed, 343 insertions(+), 107 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/lib/x86_64/perf_test_util.c

base-commit: a3808d88461270c71d3fece5e51cc486ecdac7d0

Signature · 1 line
2.36.1.124.g0e6072fb45-goog