Re: [PATCH v16 00/20] TDX KVM selftests

From: Sean Christopherson

Date: Fri Nov 13 2026 - 11:11:48 EST


On Thu, 05 Nov 2026 23:46:44 +0000, Lisa Wang wrote:
> This patch series focuses on setting up a TDX VM and adding all code
> necessary to run a basic lifecycle test.
>
> Unlike standard KVM selftests can set up the VM through guest registers,
> TDX module protects TDs' register state from the host. This feature of
> TDX causes problems on VM boot state initialization and the ucall
> implementation.
>
> [...]

Applied to kvm-x86 selftests, with various fixups. Thanks all!

[01/20] KVM: selftests: Add macros to simplify creating VM shapes for non-default types
https://github.com/kvm-x86/linux/commit/c2033e19e435
[02/20] KVM: selftests: Update kvm_init_vm_address_properties() for TDX
https://github.com/kvm-x86/linux/commit/14a02e43b463
[03/20] KVM: selftests: Initialize the TDX VM
https://github.com/kvm-x86/linux/commit/b025bec48e28
[04/20] KVM: selftests: Expose segment definitions to assembly files
https://github.com/kvm-x86/linux/commit/8f2123548d66
[05/20] tools: include: Add kbuild.h for assembly structure offsets
https://github.com/kvm-x86/linux/commit/6661b422d6fe
[06/20] KVM: selftests: Introduce structures for TDX guest boot parameters
https://github.com/kvm-x86/linux/commit/72643c4ab9f0
[07/20] KVM: selftests: Add TDX boot code
https://github.com/kvm-x86/linux/commit/1b46806fea4c
[08/20] KVM: selftests: Expose functions to get default sregs values
https://github.com/kvm-x86/linux/commit/67dd56f4f841
[09/20] KVM: selftests: Set up TDX boot code region
https://github.com/kvm-x86/linux/commit/88a23d1703b4
[10/20] KVM: selftests: Set up TDX boot parameters region
https://github.com/kvm-x86/linux/commit/b86c78a4b546
[11/20] KVM: selftests: Require guest_memfd for TDX VMs
https://github.com/kvm-x86/linux/commit/ab9e3c679b35
[12/20] KVM: selftests: Call KVM_TDX_INIT_VCPU when creating a new TDX vcpu
https://github.com/kvm-x86/linux/commit/f347a3c84cfc
[13/20] KVM: selftests: Load per-vCPU guest stack in TDX boot parameters
https://github.com/kvm-x86/linux/commit/65d1a3c322bf
[14/20] KVM: selftests: Set entry point for TDX guest code
https://github.com/kvm-x86/linux/commit/edc0212274c0
[15/20] KVM: selftests: Add helpers to init TDX memory and finalize VM
https://github.com/kvm-x86/linux/commit/8d6f19adc15f
[16/20] KVM: selftests: Load private memory and finalize TDX VM in kvm_arch_vm_finalize_vcpus()
https://github.com/kvm-x86/linux/commit/e8414d36fa14
[17/20] KVM: selftests: Add a helper to issue TDVMCALLs from the TDX vm
https://github.com/kvm-x86/linux/commit/6c477f8d23b7
[18/20] KVM: selftests: Add support for per-VM ucall ops on x86
[SKIP - effectively squashed into patch 19]
[19/20] KVM: selftests: Add support for TDX ucalls, via TDVMCALL_REPORT_FATAL_ERROR
https://github.com/kvm-x86/linux/commit/0c350dc88dea
[20/20] KVM: selftests: Add TDX lifecycle test
https://github.com/kvm-x86/linux/commit/d0926be36474

--
https://github.com/kvm-x86/linux/tree/next