From: Sean Christopherson <seanjc@google.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
Sean Christopherson <seanjc@google.com>
Subject: [GIT PULL] KVM: selftests changes for 6.20
Date: Fri, 6 Feb 2026 20:10:08 -0800 [thread overview]
Message-ID: <20260207041011.913471-7-seanjc@google.com> (raw)
In-Reply-To: <20260207041011.913471-1-seanjc@google.com>
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
next prev parent reply other threads:[~2026-02-07 4:10 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-07 4:10 [GIT PULL] KVM: x86 pull requests " Sean Christopherson
2026-02-07 4:10 ` [GIT PULL] KVM: x86: APIC related changes " Sean Christopherson
2026-02-09 18:33 ` Paolo Bonzini
2026-02-07 4:10 ` [GIT PULL] KVM: Generic " Sean Christopherson
2026-02-09 17:38 ` Paolo Bonzini
2026-02-09 17:42 ` Paolo Bonzini
2026-02-10 0:33 ` Sean Christopherson
2026-02-27 23:21 ` Sean Christopherson
2026-02-28 13:56 ` Paolo Bonzini
2026-03-02 14:53 ` Sean Christopherson
2026-02-07 4:10 ` [GIT PULL] KVM: guest_memfd " Sean Christopherson
2026-02-07 4:10 ` [GIT PULL] KVM: x86: Misc " Sean Christopherson
2026-02-09 17:56 ` Paolo Bonzini
2026-02-09 21:19 ` Sean Christopherson
2026-02-07 4:10 ` [GIT PULL] KVM: x86: Mediated PMU " Sean Christopherson
2026-02-09 16:44 ` Sean Christopherson
2026-02-07 4:10 ` Sean Christopherson [this message]
2026-02-09 17:46 ` [GIT PULL] KVM: selftests changes " Paolo Bonzini
2026-02-07 4:10 ` [GIT PULL] KVM: x86: SVM " Sean Christopherson
2026-02-09 17:51 ` Paolo Bonzini
2026-02-07 4:10 ` [GIT PULL] KVM: x86: VMX " Sean Christopherson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260207041011.913471-7-seanjc@google.com \
--to=seanjc@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®