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: <20260207041011.913471-7-seanjc@google.com>
Date: Fri,  6 Feb 2026 20:10:08 -0800
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 changes for 6.20

Stub in stage-2 MMU support in the core infrastructure, and extend x86's MMU
infrastructure to support EPT and NPT.  As noted in the cover letter, this
conflicts with some RISC-V changes.

The following changes since commit 9ace4753a5202b02191d54e9fdf7f9e3d02b85eb:

  Linux 6.19-rc4 (2026-01-04 14:41:55 -0800)

are available in the Git repository at:

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

for you to fetch changes up to a91cc48246605af9aeef1edd32232976d74d9502:

  KVM: selftests: Test READ=>WRITE dirty logging behavior for shadow MMU (2026-01-16 07:48:54 -0800)

----------------------------------------------------------------
KVM selftests changes for 6.20

 - Add a regression test for TPR<=>CR8 synchronization and IRQ masking.

 - Overhaul selftest's MMU infrastructure to genericize stage-2 MMU support,
   and extend x86's infrastructure to support EPT and NPT (for L2 guests).

 - Extend several nested VMX tests to also cover nested SVM.

 - Add a selftest for nested VMLOAD/VMSAVE.

 - Rework the nested dirty log test, originally added as a regression test for
   PML where KVM logged L2 GPAs instead of L1 GPAs, to improve test coverage
   and to hopefully make the test easier to understand and maintain.

----------------------------------------------------------------
MJ Pooladkhay (1):
      KVM: selftests: Fix sign extension bug in get_desc64_base()

Maciej S. Szmigiero (1):
      KVM: selftests: Test TPR / CR8 sync and interrupt masking

Sean Christopherson (7):
      KVM: selftests: Add "struct kvm_mmu" to track a given MMU instance
      KVM: selftests: Plumb "struct kvm_mmu" into x86's MMU APIs
      KVM: selftests: Add a "struct kvm_mmu_arch arch" member to kvm_mmu
      KVM: selftests: Add a stage-2 MMU instance to kvm_vm
      KVM: selftests: Move TDP mapping functions outside of vmx.c
      KVM: selftests: Rename vm_get_page_table_entry() to vm_get_pte()
      KVM: selftests: Test READ=>WRITE dirty logging behavior for shadow MMU

Yosry Ahmed (16):
      KVM: selftests: Make __vm_get_page_table_entry() static
      KVM: selftests: Stop passing a memslot to nested_map_memslot()
      KVM: selftests: Rename nested TDP mapping functions
      KVM: selftests: Kill eptPageTablePointer
      KVM: selftests: Stop setting A/D bits when creating EPT PTEs
      KVM: selftests: Move PTE bitmasks to kvm_mmu
      KVM: selftests: Use a TDP MMU to share EPT page tables between vCPUs
      KVM: selftests: Stop passing VMX metadata to TDP mapping functions
      KVM: selftests: Reuse virt mapping functions for nested EPTs
      KVM: selftests: Allow kvm_cpu_has_ept() to be called on AMD CPUs
      KVM: selftests: Add support for nested NPTs
      KVM: selftests: Set the user bit on nested NPT PTEs
      KVM: selftests: Extend vmx_dirty_log_test to cover SVM
      KVM: selftests: Extend memstress to run on nested SVM
      KVM: selftests: Slightly simplify memstress_setup_nested()
      KVM: selftests: Add a selftests for nested VMLOAD/VMSAVE

 tools/testing/selftests/kvm/Makefile.kvm           |   4 +-
 .../selftests/kvm/include/arm64/kvm_util_arch.h    |   2 +
 tools/testing/selftests/kvm/include/kvm_util.h     |  18 +-
 .../kvm/include/loongarch/kvm_util_arch.h          |   1 +
 .../selftests/kvm/include/riscv/kvm_util_arch.h    |   1 +
 .../selftests/kvm/include/s390/kvm_util_arch.h     |   1 +
 tools/testing/selftests/kvm/include/x86/apic.h     |   3 +
 .../selftests/kvm/include/x86/kvm_util_arch.h      |  22 ++
 .../testing/selftests/kvm/include/x86/processor.h  |  65 +++--
 tools/testing/selftests/kvm/include/x86/svm_util.h |   9 +
 tools/testing/selftests/kvm/include/x86/vmx.h      |  16 +-
 tools/testing/selftests/kvm/lib/arm64/processor.c  |  38 +--
 tools/testing/selftests/kvm/lib/kvm_util.c         |  28 +-
 .../selftests/kvm/lib/loongarch/processor.c        |  28 +-
 tools/testing/selftests/kvm/lib/riscv/processor.c  |  31 +--
 tools/testing/selftests/kvm/lib/s390/processor.c   |  16 +-
 tools/testing/selftests/kvm/lib/x86/memstress.c    |  65 +++--
 tools/testing/selftests/kvm/lib/x86/processor.c    | 237 +++++++++++++----
 tools/testing/selftests/kvm/lib/x86/svm.c          |  27 ++
 tools/testing/selftests/kvm/lib/x86/vmx.c          | 251 ++++--------------
 tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c |   2 +-
 .../selftests/kvm/x86/nested_dirty_log_test.c      | 293 +++++++++++++++++++++
 .../selftests/kvm/x86/nested_vmsave_vmload_test.c  | 197 ++++++++++++++
 .../kvm/x86/smaller_maxphyaddr_emulation_test.c    |   4 +-
 .../testing/selftests/kvm/x86/vmx_dirty_log_test.c | 179 -------------
 .../selftests/kvm/x86/vmx_nested_la57_state_test.c |   2 +-
 tools/testing/selftests/kvm/x86/xapic_tpr_test.c   | 276 +++++++++++++++++++
 27 files changed, 1244 insertions(+), 572 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/x86/nested_dirty_log_test.c
 create mode 100644 tools/testing/selftests/kvm/x86/nested_vmsave_vmload_test.c
 delete mode 100644 tools/testing/selftests/kvm/x86/vmx_dirty_log_test.c
 create mode 100644 tools/testing/selftests/kvm/x86/xapic_tpr_test.c

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ