]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Provide helpers to set the error code
authorMelody Wang <huibo.wang@amd.com>
Tue, 25 Feb 2025 21:39:37 +0000 (21:39 +0000)
committerSean Christopherson <seanjc@google.com>
Wed, 26 Feb 2025 00:30:00 +0000 (16:30 -0800)
commitc3392d0ab714d812009b686666cc5e9ef8c6a432
treea3c42954cc382cba93d424b627e880200a0822de
parentea4c2f2f5ed3e218c8c0d8facfa14d6da73b5cd8
KVM: SVM: Provide helpers to set the error code

Provide helpers to set the error code when converting VMGEXIT SW_EXITINFO1 and
SW_EXITINFO2 codes from plain numbers to proper defines. Add comments for
better code readability.

No functionality changed.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Melody Wang <huibo.wang@amd.com>
Link: https://lore.kernel.org/r/20250225213937.2471419-3-huibo.wang@amd.com
[sean: tweak comments, fix formatting goofs]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h