]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: TDX: Derive error argument names from the local variable names
authorSean Christopherson <seanjc@google.com>
Thu, 30 Oct 2025 20:09:42 +0000 (13:09 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 5 Nov 2025 19:07:03 +0000 (11:07 -0800)
commit55560b6be5bc39384917ff456d1c9ba0a3790277
tree4195997d0e7621d4bdd454cf1ed25bead1497083
parent597d7068702fc3120b6a37bb8c5cd6c1bab898e0
KVM: TDX: Derive error argument names from the local variable names

When printing SEAMCALL errors, use the name of the variable holding an
error parameter instead of the register from whence it came, so that flows
which use descriptive variable names will similarly print descriptive
error messages.

Suggested-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Tested-by: Yan Zhao <yan.y.zhao@intel.com>
Tested-by: Kai Huang <kai.huang@intel.com>
Link: https://patch.msgid.link/20251030200951.3402865-20-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/tdx.c