+1
−0
arch/x86/kvm/vmx/tdx_errno.h
0 → 100644
+36
−0
Loading
Add error codes for the TDX SEAMCALLs both for TDX VMM side for TDH SEAMCALL and TDX guest side for TDG.VP.VMCALL. KVM issues the TDX SEAMCALLs and checks its error code. KVM handles hypercall from the TDX guest and may return an error. So error code for the TDX guest is also needed. TDX SEAMCALL uses bits 31:0 to return more information, so these error codes will only exactly match RAX[63:32]. Error codes for TDG.VP.VMCALL is defined by TDX Guest-Host-Communication interface spec. Signed-off-by:Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by:
Isaku Yamahata <isaku.yamahata@intel.com> Signed-off-by:
Rick Edgecombe <rick.p.edgecombe@intel.com> Reviewed-by:
Paolo Bonzini <pbonzini@redhat.com> Reviewed-by:
Yuan Yao <yuan.yao@intel.com> Reviewed-by:
Xiaoyao Li <xiaoyao.li@intel.com> Message-ID: <20241030190039.77971-14-rick.p.edgecombe@intel.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>