Skip to content
Commit c3392d0a authored by Melody Wang's avatar Melody Wang Committed by Sean Christopherson
Browse files

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: default avatarSean Christopherson <seanjc@google.com>
Signed-off-by: default avatarMelody 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: default avatarSean Christopherson <seanjc@google.com>
parent ea4c2f2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment