diff options
| author | Borislav Petkov (AMD) <[email protected]> | 2023-02-16 09:50:11 +0000 |
|---|---|---|
| committer | Borislav Petkov (AMD) <[email protected]> | 2023-03-13 11:55:34 +0000 |
| commit | fa4ae42cc60a7dea30e8f2db444b808d80862345 (patch) | |
| tree | 4bd250b5fa6a5fc7fb2a0b4714a3c2d8bd10984a /tools/perf/scripts/python/check-perf-trace.py | |
| parent | virt/coco/sev-guest: Do some code style cleanups (diff) | |
| download | kernel-fa4ae42cc60a7dea30e8f2db444b808d80862345.tar.gz kernel-fa4ae42cc60a7dea30e8f2db444b808d80862345.zip | |
virt/coco/sev-guest: Convert the sw_exit_info_2 checking to a switch-case
snp_issue_guest_request() checks the value returned by the hypervisor in
sw_exit_info_2 and returns a different error depending on it.
Convert those checks into a switch-case to make it more readable when
more error values are going to be checked in the future.
No functional changes.
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Tom Lendacky <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
