]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/tdx: Handle KVM_SYSTEM_EVENT_TDX_FATAL
authorXiaoyao Li <xiaoyao.li@intel.com>
Thu, 8 May 2025 14:59:34 +0000 (10:59 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 May 2025 17:35:54 +0000 (19:35 +0200)
commit98dbfd6849f117de02ac6f513f2a1f95563e60ae
treeb5b88e026fe5217f060a66cf1b2453669abbfdcd
parent1ff5048d74e661943260c33e864c4118acb37ab4
i386/tdx: Handle KVM_SYSTEM_EVENT_TDX_FATAL

TD guest can use TDG.VP.VMCALL<REPORT_FATAL_ERROR> to request
termination. KVM translates such request into KVM_EXIT_SYSTEM_EVENT with
type of KVM_SYSTEM_EVENT_TDX_FATAL.

Add hanlder for such exit. Parse and print the error message, and
terminate the TD guest in the handler.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250508150002.689633-29-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm/kvm.c
target/i386/kvm/tdx-stub.c
target/i386/kvm/tdx.c
target/i386/kvm/tdx.h