diff options
author | Sean Christopherson <seanjc@google.com> | 2024-01-31 15:56:06 -0800 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-02-06 11:08:44 -0800 |
commit | cc4ce37bed85989daf8f38bf19ea591f3b36fb0c (patch) | |
tree | 65682dd15e20aed7057faaf325fa7829e1609291 /lib/debugobjects.c | |
parent | 41bccc98fb7931d63d03f326a746ac4d429c1dd3 (diff) |
KVM: SVM: Set sev->asid in sev_asid_new() instead of overloading the return
Explicitly set sev->asid in sev_asid_new() when a new ASID is successfully
allocated, and return '0' to indicate success instead of overloading the
return value to multiplex the ASID with error codes. There is exactly one
caller of sev_asid_new(), and sev_asid_free() already consumes sev->asid,
i.e. returning the ASID isn't necessary for flexibility, nor does it
provide symmetry between related APIs.
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20240131235609.4161407-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions