Merge branch 'kvm-tdx-finish-initial' into HEAD
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Mar 2025 11:59:07 +0000 (07:59 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Mar 2025 18:26:30 +0000 (14:26 -0400)
commit7bcf7246c42a81e77fbe18a0a3e7c2813c1690a6
treec18e8db0feae57635c9daa798c961eb01c80f06f
parent9913212bce907b5fec014490d8e5a282d109ffeb
parent52f52ea79a4c8c21d5aa00a5453da000ad37c67f
Merge branch 'kvm-tdx-finish-initial' into HEAD

This patch ties the remaining loose ends and finally enables TDX guests to
run inside KVM.  It implements handling of EPT violation/misconfig and of
several TDVMCALL leaves that are handled in the kernel (CPUID, HLT, RDMSR/WRMSR,
GetTdVmCallInfo); it also adds a bunch of wrappers in vmx/main.c to
ignore operations not supported by TDX guests(*)

Finally, it introduces documentation for the new APIs that have been
added along the way.

(*) access to CPU state, VMX preemption timer, accesses to TSC offset or
    multiplier, LMCE enable/disable, hypercall patching.