Skip to content

Verify dirty logging works properly with page stats

Mingwei Zhang kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4selftests: KVM: Dump VM stats in binary stats testtools/testing/selftests/kvm/include/kvm_util_base.h tools/testing/selftests/kvm/kvm_binary_stats_test.c tools/testing/selftests/kvm/lib/kvm_util.c+147 -00 replies
2/4selftests: KVM: Test reading a single stattools/testing/selftests/kvm/include/kvm_util_base.h tools/testing/selftests/kvm/kvm_binary_stats_test.c tools/testing/selftests/kvm/lib/kvm_util.c+57 -00 replies
3/4KVM: x86/mmu: explicitly check nx_hugepage in disallowed_hugepage_adjust()arch/x86/kvm/mmu/mmu.c+12 -25 replies
4/4selftests: KVM: use dirty logging to check if page stats work correctlytools/testing/selftests/kvm/dirty_log_perf_test.c+52 -05 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchBen Gardon
1/4
2/4
3/4R-b
4/4

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 0/4] Verify dirty logging works properly with page stats

This patchset is to verify if dirty logging works properly by checking page stats from the per-VM interface. We discovered one performance bug in disallowed_hugepage_adjust() which prevents KVM from recovering large pages for the guest. The selftest logic added later could help validate the problem.

The patchset borrowes two patches come from Ben's series: "[PATCH 00/13]
KVM: x86: Add a cap to disable NX hugepages on a VM" [1], which completes the selftest library functions to use the stats interface.

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

Ben Gardon (2):
selftests: KVM: Dump VM stats in binary stats test
selftests: KVM: Test reading a single stat

Mingwei Zhang (2):
KVM: x86/mmu: explicitly check nx_hugepage in
disallowed_hugepage_adjust()
selftests: KVM: use dirty logging to check if page stats work
correctly

 arch/x86/kvm/mmu/mmu.c                        |  14 +-
 .../selftests/kvm/dirty_log_perf_test.c       |  52 +++++
 .../selftests/kvm/include/kvm_util_base.h     |   2 +
 .../selftests/kvm/kvm_binary_stats_test.c     |   6 +
 tools/testing/selftests/kvm/lib/kvm_util.c    | 196 ++++++++++++++++++
 5 files changed, 268 insertions(+), 2 deletions(-)
Signature · 1 line
2.35.1.894.gb6a874cedc-goog