<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/kvm/x86, branch linux-rolling-lts</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-lts</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-lts'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2026-01-23T10:21:23Z</updated>
<entry>
<title>selftests: kvm: try getting XFD and XSAVE state out of sync</title>
<updated>2026-01-23T10:21:23Z</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2025-12-31T15:47:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=522a38f455bffda228e2853ba6dab09ab7a6fcd4'/>
<id>urn:sha1:522a38f455bffda228e2853ba6dab09ab7a6fcd4</id>
<content type='text'>
commit 0383a8edef396cf0a6884b0be81d62bde60737b0 upstream.

The host is allowed to set FPU state that includes a disabled
xstate component.  Check that this does not cause bad effects.

Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>selftests: kvm: replace numbered sync points with actions</title>
<updated>2026-01-23T10:21:23Z</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2025-12-23T23:44:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=580581bd4af55259e0b35157ee9f52960b165e57'/>
<id>urn:sha1:580581bd4af55259e0b35157ee9f52960b165e57</id>
<content type='text'>
commit a1025dcd377ef92d9a09af03b70ce80be281ee22 upstream.

Rework the guest=&gt;host syncs in the AMX test to use named actions instead
of arbitrary, incrementing numbers.  The "stage" of the test has no real
meaning, what matters is what action the test wants the host to perform.
The incrementing numbers are somewhat helpful for triaging failures, but
fully debugging failures almost always requires a much deeper dive into
the test (and KVM).

Using named actions not only makes it easier to extend the test without
having to shift all sync point numbers, it makes the code easier to read.

[Commit message by Sean Christopherson]

Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Verify MSRs are (not) in save/restore list when (un)supported</title>
<updated>2025-09-23T17:03:02Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2025-09-19T22:32:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=947ab90c91983c965acb994455734aae19317596'/>
<id>urn:sha1:947ab90c91983c965acb994455734aae19317596</id>
<content type='text'>
Add a check in the MSRs test to verify that KVM's reported support for
MSRs with feature bits is consistent between KVM's MSR save/restore lists
and KVM's supported CPUID.

To deal with Intel's wonderful decision to bundle IBT and SHSTK under CET,
track the "second" feature to avoid false failures when running on a CPU
with only one of IBT or SHSTK.

Reviewed-by: Chao Gao &lt;chao.gao@intel.com&gt;
Link: https://lore.kernel.org/r/20250919223258.1604852-51-seanjc@google.com
Signed-off-by: Sean Christopherson &lt;seanjc@google.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Add coverage for KVM-defined registers in MSRs test</title>
<updated>2025-09-23T16:59:44Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2025-09-19T22:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3469fd203bac201ad67d9586041689c4c6a87882'/>
<id>urn:sha1:3469fd203bac201ad67d9586041689c4c6a87882</id>
<content type='text'>
Add test coverage for the KVM-defined GUEST_SSP "register" in the MSRs
test.  While _KVM's_ goal is to not tie the uAPI of KVM-defined registers
to any particular internal implementation, i.e. to not commit in uAPI to
handling GUEST_SSP as an MSR, treating GUEST_SSP as an MSR for testing
purposes is a-ok and is a naturally fit given the semantics of SSP.

Reviewed-by: Chao Gao &lt;chao.gao@intel.com&gt;
Link: https://lore.kernel.org/r/20250919223258.1604852-50-seanjc@google.com
Signed-off-by: Sean Christopherson &lt;seanjc@google.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Add KVM_{G,S}ET_ONE_REG coverage to MSRs test</title>
<updated>2025-09-23T16:52:18Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2025-09-19T22:32:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=80c2b6d8e7bb194744f5fdfc4f0560e053ababda'/>
<id>urn:sha1:80c2b6d8e7bb194744f5fdfc4f0560e053ababda</id>
<content type='text'>
When KVM_{G,S}ET_ONE_REG are supported, verify that MSRs can be accessed
via ONE_REG and through the dedicated MSR ioctls.  For simplicity, run
the test twice, e.g. instead of trying to get MSR values into the exact
right state when switching write methods.

Reviewed-by: Chao Gao &lt;chao.gao@intel.com&gt;
Link: https://lore.kernel.org/r/20250919223258.1604852-49-seanjc@google.com
Signed-off-by: Sean Christopherson &lt;seanjc@google.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Extend MSRs test to validate vCPUs without supported features</title>
<updated>2025-09-23T16:52:17Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2025-09-19T22:32:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8b9cca99cf454799ef799f8af9bdb55389cfd94'/>
<id>urn:sha1:a8b9cca99cf454799ef799f8af9bdb55389cfd94</id>
<content type='text'>
Add a third vCPUs to the MSRs test that runs with all features disabled in
the vCPU's CPUID model, to verify that KVM does the right thing with
respect to emulating accesses to MSRs that shouldn't exist.  Use the same
VM to verify that KVM is honoring the vCPU model, e.g. isn't looking at
per-VM state when emulating MSR accesses.

Link: https://lore.kernel.org/r/20250919223258.1604852-48-seanjc@google.com
Signed-off-by: Sean Christopherson &lt;seanjc@google.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Add support for MSR_IA32_{S,U}_CET to MSRs test</title>
<updated>2025-09-23T16:51:59Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2025-09-19T22:32:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=27c41353064f9fdec9276e6b8e618b01110ef282'/>
<id>urn:sha1:27c41353064f9fdec9276e6b8e618b01110ef282</id>
<content type='text'>
Extend the MSRs test to support {S,U}_CET, which are a bit of a pain to
handled due to the MSRs existing if IBT *or* SHSTK is supported.  To deal
with Intel's wonderful decision to bundle IBT and SHSTK under CET, track
the second feature, but skip only RDMSR #GP tests to avoid false failures
when running on a CPU with only one of IBT or SHSTK (the WRMSR #GP tests
are still valid since the enable bits are per-feature).

Reviewed-by: Chao Gao &lt;chao.gao@intel.com&gt;
Link: https://lore.kernel.org/r/20250919223258.1604852-47-seanjc@google.com
Signed-off-by: Sean Christopherson &lt;seanjc@google.com&gt;
</content>
</entry>
<entry>
<title>KVM: selftests: Add an MSR test to exercise guest/host and read/write</title>
<updated>2025-09-23T16:51:56Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2025-09-19T22:32:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c38ddb3df94acdc86485c7073610f01655309f9'/>
<id>urn:sha1:9c38ddb3df94acdc86485c7073610f01655309f9</id>
<content type='text'>
Add a selftest to verify reads and writes to various MSRs, from both the
guest and host, and expect success/failure based on whether or not the
vCPU supports the MSR according to supported CPUID.

Note, this test is extremely similar to KVM-Unit-Test's "msr" test, but
provides more coverage with respect to host accesses, and will be extended
to provide addition testing of CPUID-based features, save/restore lists,
and KVM_{G,S}ET_ONE_REG, all which are extremely difficult to validate in
KUT.

If kvm.ignore_msrs=true, skip the unsupported and reserved testcases as
KVM's ABI is a mess; what exactly is supposed to be ignored, and when,
varies wildly.

Reviewed-by: Chao Gao &lt;chao.gao@intel.com&gt;
Link: https://lore.kernel.org/r/20250919223258.1604852-46-seanjc@google.com
Signed-off-by: Sean Christopherson &lt;seanjc@google.com&gt;
</content>
</entry>
<entry>
<title>KVM: x86: Merge 'selftests' into 'cet' to pick up ex_str()</title>
<updated>2025-09-23T16:00:18Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2025-09-23T16:00:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1f2bbbbbda57f1939d757f5021ec0e3ea782ccf6'/>
<id>urn:sha1:1f2bbbbbda57f1939d757f5021ec0e3ea782ccf6</id>
<content type='text'>
Merge the queue of KVM selftests changes for 6.18 to pick up the ex_str()
helper so that it can be used to pretty print expected versus actual
exceptions in a new MSR selftest.  CET virtualization will add support for
several MSRs with non-trivial semantics, along with new uAPI for accessing
the guest's Shadow Stack Pointer (SSP) from userspace.
</content>
</entry>
<entry>
<title>KVM: selftests: Add ex_str() to print human friendly name of exception vectors</title>
<updated>2025-09-23T15:39:02Z</updated>
<author>
<name>Sean Christopherson</name>
</author>
<published>2025-09-19T22:32:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df1f294013da715f32521b3d0a69773e660a1af5'/>
<id>urn:sha1:df1f294013da715f32521b3d0a69773e660a1af5</id>
<content type='text'>
Steal exception_mnemonic() from KVM-Unit-Tests as ex_str() (to keep line
lengths reasonable) and use it in assert messages that currently print the
raw vector number.

Co-developed-by: Chao Gao &lt;chao.gao@intel.com&gt;
Signed-off-by: Chao Gao &lt;chao.gao@intel.com&gt;
Link: https://lore.kernel.org/r/20250919223258.1604852-45-seanjc@google.com
Signed-off-by: Sean Christopherson &lt;seanjc@google.com&gt;
</content>
</entry>
</feed>
