Skip to content

KVM selftests enhancements

Manali Shukla kvm linux-kselftest 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: selftests: Add safe_halt() and cli() helpers to common codetools/testing/selftests/kvm/include/x86_64/processor.h+17 -01 reply
2/4KVM: selftests: Add an interface to read the data of named vcpu stattools/testing/selftests/kvm/include/kvm_util.h tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h tools/testing/selftests/kvm/lib/kvm_util.c+128 -01 reply
3/4KVM: selftests: convert vm_get_stat to macrotools/testing/selftests/kvm/include/kvm_util.h tools/testing/selftests/kvm/include/x86_64/kvm_util_arch.h+42 -70 replies
4/4KVM: selftests: Replace previously used vm_get_stat() to macrotools/testing/selftests/kvm/x86_64/dirty_log_page_splitting_test.c tools/testing/selftests/kvm/x86_64/nx_huge_pages_test.c+5 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/4] KVM selftests enhancements

This series was prompted by feedback given in [1].
Patch 1 : Adds safe_hlt() and cli() helpers.
Patch 2, 3: Adds an interface to read vcpu stat in selftest. Adds
a macro to generate compiler error to detect typos at compile time while parsing vcpu and vm stats.
Patch 4 : Fix few of the selftests based on newly defined macro.

This series was split from the Idle HLT intercept support series [2] because the series has a few changes in the vm_get_stat() interface as suggested in [1] and a few changes in two of the self-tests (nx_huge_pages_test.c and dirty_log_page_splitting_test.c) which use vm_get_stat() functionality to retrieve specified VM stats. These changes are unrelated to the Idle HLT intercept support series [2].

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

[2] https://lore.kernel.org/kvm/[email protected]/T/#m6c67ca8ccb226e5f357d943da2a2965a4224f69a

Manali Shukla (4):
KVM: selftests: Add safe_halt() and cli() helpers to common code
KVM: selftests: Add an interface to read the data of named vcpu stat
KVM: selftests: convert vm_get_stat to macro
KVM: selftests: Replace previously used vm_get_stat() to macro

 .../testing/selftests/kvm/include/kvm_util.h  | 83 +++++++++++++++++--
 .../kvm/include/x86_64/kvm_util_arch.h        | 52 ++++++++++++
 .../selftests/kvm/include/x86_64/processor.h  | 17 ++++
 tools/testing/selftests/kvm/lib/kvm_util.c    | 40 +++++++++
 .../x86_64/dirty_log_page_splitting_test.c    |  6 +-
 .../selftests/kvm/x86_64/nx_huge_pages_test.c |  4 +-
 6 files changed, 191 insertions(+), 11 deletions(-)

base-commit: c8d430db8eec7d4fd13a6bea27b7086a54eda6da

Signature · 1 line
2.34.1