Re: [kvm-unit-tests GIT PULL] x86: random smattering of changes

From: Paolo Bonzini

Date: Sat May 30 2026 - 13:16:09 EST


On 5/27/26 20:04, Sean Christopherson wrote:
Please pull a rather random set of changes that have been accumulating over
the last few months.

Note, the SKINIT nSVM intercept test fails on some Turin CPUs, but allegedly
only on pre-production hardware? I assume/hope such hardware isn't commonly
available, and so didn't bother trying to handle it in upstream KUT.

The following changes since commit 9eb6c57313060d34f7e5b2ac6f90bb5873bbe2ff:

Merge branch 'mbec' into HEAD (2026-05-12 13:03:25 +0200)

are available in the Git repository at:

https://github.com/kvm-x86/kvm-unit-tests.git tags/kvm-x86-2026.05.27

Pulled, thanks.

(I haven't pushed my 32-bit tests yet, especially since you preferred to leave out the new nSVM test).

Paolo


for you to fetch changes up to c10d4616e2ad5d95553b2f0c389b4546dfacd76f:

x86/vmx: Remove the superfluous vmx_cet config entry (2026-05-27 08:59:46 -0700)

----------------------------------------------------------------
KVM-Unit-Tests x86 changes:

- Track SVM's EXIT_CODE as a 64-bit value, to verify KVM does the same.

- Add nSVM tests for unsupported instruction intercepts.

- Serialize the (v)CPU after WRMSR(TSCDEADLINE) to prepare for APIC timer
virtualization.

- Disable PKU in the vCPU model when running the nVMX access tests to make
the runtime somewhat reasonable.

- Extended the VMOVDQA test to cover VMOVNTDQA as well.

- Add test coverage for ENTER + emulated MMIO.

- Misc fixes, cleanups, and minor coverage enhancements.

----------------------------------------------------------------
Isaku Yamahata (2):
x86: Replace NOP with CPUID after WRMSR(TSCDEADLINE) to serialize deadline timer
x86: tscdeadline_latency: Remove unnecessary nop

Jim Mattson (1):
x86: nVMX: Add retry loop to advanced RTM debugging subtest

Kevin Cheng (2):
x86/svm: Add missing svm intercepts
x86/svm: Add unsupported instruction intercept test

Maxim Levitsky (1):
Skip PMU portion of vmware_backdoors test if PMU is not enabled.

Sean Christopherson (9):
x86/cstart: Delete "local" version of save_id() to fix x2APIC SMP bug
x86/debug: Fix macro definitions for DR7 local/global enable bits
x86/svm: Track and handle exit code as an unsigned 64-bit value
x86: Disable PKU in vCPU model for vmx_pf_{vpid/no_vpid/invvpid}_test
x86/xsave: Extend VMOVDQA testing to also cover VMOVNTDQA
x86/debug: Verify DR6 is always empty on an INT1/ICEBP #DB
x86/apic: Verify LVT timer register mode reads back what was written
x86/emulator: Add testcases for ENTER + emulated MMIO
x86/vmx: Remove the superfluous vmx_cet config entry

lib/x86/asm/debugreg.h | 5 +-
lib/x86/msr.h | 1 +
lib/x86/processor.h | 11 ++
x86/apic.c | 8 +-
x86/cstart.S | 7 --
x86/debug.c | 34 +++---
x86/emulator.c | 66 ++++++-----
x86/emulator64.c | 64 ++++++++++
x86/svm.c | 22 +++-
x86/svm.h | 98 +++++++++++++---
x86/svm_npt.c | 4 +-
x86/svm_tests.c | 290 ++++++++++++++++++++++++++++++----------------
x86/tscdeadline_latency.c | 1 -
x86/unittests.cfg | 31 ++---
x86/vmexit.c | 3 +-
x86/vmware_backdoors.c | 18 ++-
x86/vmx_tests.c | 76 +++++++++---
x86/xsave.c | 36 +++++-
18 files changed, 559 insertions(+), 216 deletions(-)