Borislav Petkov (AMD) 970ab82374 virt/coco/sev-guest: Simplify extended guest request handling
Return a specific error code - -ENOSPC - to signal the too small cert
data buffer instead of checking exit code and exitinfo2.

While at it, hoist the *fw_err assignment in snp_issue_guest_request()
so that a proper error value is returned to the callers.

  [ Tom: check override_err instead of err. ]

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230307192449.24732-4-bp@alien8.de
2023-03-13 11:27:10 +01:00
..
2023-02-20 18:32:55 -08:00
2023-02-20 18:50:02 -08:00
2023-02-23 13:03:08 -08:00
2023-02-25 09:11:30 -08:00
2022-09-26 10:13:16 -07:00
2022-04-19 17:14:09 -07:00
2022-12-17 14:06:53 -06:00
2022-12-02 14:06:34 +01:00
2022-04-07 08:27:51 -07:00
2022-08-02 15:21:18 -07:00
2022-12-15 11:12:21 -08:00
2023-02-23 14:00:10 -08:00
2023-02-25 11:30:21 -08:00
2023-02-21 12:13:58 -08:00
2021-12-01 00:06:43 +01:00
2022-12-10 10:33:11 -06:00
2023-01-06 04:22:34 +01:00
2022-02-25 09:36:05 +01:00
2022-09-26 19:46:16 -07:00
2021-10-25 23:02:36 -04:00
2022-04-14 14:09:43 +02:00