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.16
Date: Fri, 23 May 2025 09:25:01 -0700 [thread overview]
Message-ID: <20250523162504.3281680-5-seanjc@google.com> (raw)
In-Reply-To: <20250523162504.3281680-1-seanjc@google.com>
Add support for SNP and MGRLU in selftests, and add a test verify fastops
(which was easier than walking PeterZ through getting a guest running with
unrestricted guest disabled :-D).
The following changes since commit 45eb29140e68ffe8e93a5471006858a018480a45:
Merge branch 'kvm-fixes-6.15-rc4' into HEAD (2025-04-24 13:39:34 -0400)
are available in the Git repository at:
https://github.com/kvm-x86/linux.git tags/kvm-x86-selftests-6.16
for you to fetch changes up to d166453ebd2925edde24872d9b8ac60065eb0618:
KVM: selftests: access_tracking_perf_test: Use MGLRU for access tracking (2025-05-16 12:58:21 -0700)
----------------------------------------------------------------
KVM selftests changes for 6.16:
- Add support for SNP to the various SEV selftests.
- Add a selftest to verify fastops instructions via forced emulation.
- Add MGLRU support to the access tracking perf test.
----------------------------------------------------------------
James Houghton (3):
cgroup: selftests: Move cgroup_util into its own library
KVM: selftests: Build and link selftests/cgroup/lib into KVM selftests
KVM: selftests: access_tracking_perf_test: Use MGLRU for access tracking
Maxim Levitsky (1):
KVM: selftests: access_tracking_perf_test: Add option to skip the sanity check
Pratik R. Sampat (9):
KVM: selftests: SEV-SNP test for KVM_SEV_INIT2
KVM: selftests: Add vmgexit helper
KVM: selftests: Add SMT control state helper
KVM: selftests: Replace assert() with TEST_ASSERT_EQ()
KVM: selftests: Introduce SEV VM type check
KVM: selftests: Add library support for interacting with SNP
KVM: selftests: Force GUEST_MEMFD flag for SNP VM type
KVM: selftests: Decouple SEV policy from VM type
KVM: selftests: Add a basic SEV-SNP smoke test
Sean Christopherson (4):
KVM: selftests: Add a test for x86's fastops emulation
KVM: selftests: Extract guts of THP accessor to standalone sysfs helpers
cgroup: selftests: Move memcontrol specific helpers out of common cgroup_util.c
cgroup: selftests: Add API to find root of specific controller
arch/x86/include/uapi/asm/kvm.h | 1 +
tools/arch/x86/include/uapi/asm/kvm.h | 1 +
tools/testing/selftests/cgroup/Makefile | 21 +-
.../selftests/cgroup/{ => lib}/cgroup_util.c | 118 ++-----
.../cgroup/{ => lib/include}/cgroup_util.h | 13 +-
tools/testing/selftests/cgroup/lib/libcgroup.mk | 19 +
tools/testing/selftests/cgroup/test_memcontrol.c | 78 +++++
tools/testing/selftests/kvm/Makefile.kvm | 5 +-
.../selftests/kvm/access_tracking_perf_test.c | 281 +++++++++++++--
tools/testing/selftests/kvm/include/kvm_util.h | 35 ++
tools/testing/selftests/kvm/include/lru_gen_util.h | 51 +++
tools/testing/selftests/kvm/include/test_util.h | 1 +
.../testing/selftests/kvm/include/x86/processor.h | 1 +
tools/testing/selftests/kvm/include/x86/sev.h | 53 ++-
tools/testing/selftests/kvm/lib/kvm_util.c | 21 +-
tools/testing/selftests/kvm/lib/lru_gen_util.c | 387 +++++++++++++++++++++
tools/testing/selftests/kvm/lib/test_util.c | 42 ++-
tools/testing/selftests/kvm/lib/x86/processor.c | 4 +-
tools/testing/selftests/kvm/lib/x86/sev.c | 76 +++-
tools/testing/selftests/kvm/x86/fastops_test.c | 165 +++++++++
tools/testing/selftests/kvm/x86/hyperv_cpuid.c | 21 +-
tools/testing/selftests/kvm/x86/sev_init2_tests.c | 13 +
tools/testing/selftests/kvm/x86/sev_smoke_test.c | 75 ++--
23 files changed, 1273 insertions(+), 209 deletions(-)
rename tools/testing/selftests/cgroup/{ => lib}/cgroup_util.c (88%)
rename tools/testing/selftests/cgroup/{ => lib/include}/cgroup_util.h (91%)
create mode 100644 tools/testing/selftests/cgroup/lib/libcgroup.mk
create mode 100644 tools/testing/selftests/kvm/include/lru_gen_util.h
create mode 100644 tools/testing/selftests/kvm/lib/lru_gen_util.c
create mode 100644 tools/testing/selftests/kvm/x86/fastops_test.c
next prev parent reply other threads:[~2025-05-23 16:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-23 16:24 [GIT PULL] KVM: x86: Changes " Sean Christopherson
2025-05-23 16:24 ` [GIT PULL] KVM: x86: Misc changes " Sean Christopherson
2025-05-23 16:24 ` [GIT PULL] KVM: x86: MMU " Sean Christopherson
2025-05-23 16:25 ` [GIT PULL] KVM: x86: Posted Interrupt PIR " Sean Christopherson
2025-05-23 16:25 ` Sean Christopherson [this message]
2025-05-23 16:25 ` [GIT PULL] KVM: x86: SVM " Sean Christopherson
2025-05-23 16:25 ` [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=20250523162504.3281680-5-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®