]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: SVM: Convert plain error code numbers to defines
authorMelody Wang <huibo.wang@amd.com>
Tue, 25 Feb 2025 21:39:36 +0000 (21:39 +0000)
committerSean Christopherson <seanjc@google.com>
Wed, 26 Feb 2025 00:29:59 +0000 (16:29 -0800)
commitea4c2f2f5ed3e218c8c0d8facfa14d6da73b5cd8
tree00939ffdb144030e2e26b814472b7f56008a3c14
parent7e066cb9b71a22c3e5ef233de63ff14525baf6f0
KVM: SVM: Convert plain error code numbers to defines

Convert VMGEXIT SW_EXITINFO1 codes from plain numbers to proper defines.

Opportunistically update the comment for the malformed input "sub-error"
codes to state that they are defined by the GHCB, and to capure the
relationship to the malformed input response.

No functional change intended.

Signed-off-by: Melody Wang <huibo.wang@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Pavan Kumar Paluri <papaluri@amd.com>
Link: https://lore.kernel.org/r/20250225213937.2471419-2-huibo.wang@amd.com
[sean: update comments]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/sev-common.h
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c