OSDN Git Service

sev: use explicit indices for mapping firmware error codes to strings
authorConnor Kuehl <ckuehl@redhat.com>
Fri, 30 Apr 2021 13:48:29 +0000 (08:48 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 1 Jun 2021 13:32:48 +0000 (09:32 -0400)
commit5811b936bf4b0340a83fea8b5b574670d8c219c4
treecedd35dc0b08f7a7241ab95343cf3bcf11d18eb7
parent3ea1a80243d5b5ba23d8c2b7d3a86034ea0ade22
sev: use explicit indices for mapping firmware error codes to strings

This can help lower any margin for error when making future additions to
the list, especially if they're made out of order.

While doing so, make capitalization of ASID consistent with its usage in
the SEV firmware spec (Asid -> ASID).

Signed-off-by: Connor Kuehl <ckuehl@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210430134830.254741-2-ckuehl@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/sev.c