lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240510235055.2811352-5-seanjc@google.com>
Date: Fri, 10 May 2024 16:50:49 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org, 
	Sean Christopherson <seanjc@...gle.com>
Subject: [GIT PULL] KVM: Selftests cleanups and fixes for 6.10

This is 1 of 2 selftests pull request for 6.10.  This is (by far) the smaller
of the two, and contains fairly localized changes.  The most notable fix is to
skip tests as needed if the host doesn't support KVM_CAP_USER_MEMORY2, as the
selftests currently just fail miserably on KVM_SET_USER_MEMORY_REGION2.

More details about why there are two pull requests in 2 of 2.

The following changes since commit fec50db7033ea478773b159e0e2efb135270e3b7:

  Linux 6.9-rc3 (2024-04-07 13:22:46 -0700)

are available in the Git repository at:

  https://github.com/kvm-x86/linux.git tags/kvm-x86-selftests-6.10

for you to fetch changes up to 8a53e13021330a25775a31ced44fbec2225a9443:

  KVM: selftests: Require KVM_CAP_USER_MEMORY2 for tests that create memslots (2024-05-02 16:12:28 -0700)

----------------------------------------------------------------
KVM selftests cleanups and fixes for 6.10:

 - Enhance the demand paging test to allow for better reporting and stressing
   of UFFD performance.

 - Convert the steal time test to generate TAP-friendly output.

 - Fix a flaky false positive in the xen_shinfo_test due to comparing elapsed
   time across two different clock domains.

 - Skip the MONITOR/MWAIT test if the host doesn't actually support MWAIT.

 - Avoid unnecessary use of "sudo" in the NX hugepage test to play nice with
   running in a minimal userspace environment.

 - Allow skipping the RSEQ test's sanity check that the vCPU was able to
   complete a reasonable number of KVM_RUNs, as the assert can fail on a
   completely valid setup.  If the test is run on a large-ish system that is
   otherwise idle, and the test isn't affined to a low-ish number of CPUs, the
   vCPU task can be repeatedly migrated to CPUs that are in deep sleep states,
   which results in the vCPU having very little net runtime before the next
   migration due to high wakeup latencies.

----------------------------------------------------------------
Anish Moorthy (3):
      KVM: selftests: Report per-vcpu demand paging rate from demand paging test
      KVM: selftests: Allow many vCPUs and reader threads per UFFD in demand paging test
      KVM: selftests: Use EPOLL in userfaultfd_util reader threads

Brendan Jackman (1):
      KVM: selftests: Avoid assuming "sudo" exists in NX hugepage test

Colin Ian King (1):
      KVM: selftests: Remove second semicolon

Sean Christopherson (1):
      KVM: selftests: Require KVM_CAP_USER_MEMORY2 for tests that create memslots

Thomas Huth (1):
      KVM: selftests: Use TAP in the steal_time test

Vitaly Kuznetsov (1):
      KVM: selftests: Compare wall time from xen shinfo against KVM_GET_CLOCK

Zide Chen (2):
      KVM: selftests: Make monitor_mwait require MONITOR/MWAIT feature
      KVM: selftests: Allow skipping the KVM_RUN sanity check in rseq_test

 .../selftests/kvm/aarch64/page_fault_test.c        |   4 +-
 tools/testing/selftests/kvm/demand_paging_test.c   |  90 +++++++++---
 .../selftests/kvm/include/userfaultfd_util.h       |  16 ++-
 tools/testing/selftests/kvm/lib/kvm_util.c         |   8 ++
 tools/testing/selftests/kvm/lib/userfaultfd_util.c | 153 ++++++++++++---------
 tools/testing/selftests/kvm/rseq_test.c            |  35 ++++-
 tools/testing/selftests/kvm/steal_time.c           |  47 +++----
 .../selftests/kvm/x86_64/monitor_mwait_test.c      |   1 +
 .../selftests/kvm/x86_64/nx_huge_pages_test.sh     |  13 +-
 .../testing/selftests/kvm/x86_64/xen_shinfo_test.c |  52 +++----
 10 files changed, 282 insertions(+), 137 deletions(-)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ