aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Kuehl <ckuehl@redhat.com>2021-04-30 08:48:30 -0500
committerEduardo Habkost <ehabkost@redhat.com>2021-06-01 09:32:48 -0400
commitd47b85502b92fe8015d38904cde54eb4d3364326 (patch)
treee72d9a1508db872a6bc4218631cf39edf5681ef5
parent5811b936bf4b0340a83fea8b5b574670d8c219c4 (diff)
sev: add missing firmware error conditions
The SEV userspace header[1] exports a couple of other error conditions that aren't listed in QEMU's SEV implementation, so let's just round out the list. [1] linux-headers/linux/psp-sev.h Signed-off-by: Connor Kuehl <ckuehl@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210430134830.254741-3-ckuehl@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-rw-r--r--target/i386/sev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/i386/sev.c b/target/i386/sev.c
index 5467407ee1..83df8c09f6 100644
--- a/target/i386/sev.c
+++ b/target/i386/sev.c
@@ -110,6 +110,8 @@ static const char *const sev_fw_errlist[] = {
[SEV_RET_HWSEV_RET_UNSAFE] = "Hardware unsafe",
[SEV_RET_UNSUPPORTED] = "Feature not supported",
[SEV_RET_INVALID_PARAM] = "Invalid parameter",
+ [SEV_RET_RESOURCE_LIMIT] = "Required firmware resource depleted",
+ [SEV_RET_SECURE_DATA_INVALID] = "Part-specific integrity check failure",
};
#define SEV_FW_MAX_ERROR ARRAY_SIZE(sev_fw_errlist)