target/i386: sev: Unify SEVState and SevGuestState
commit421522eb534d82040bc8e405ed3a28d94d17f24e
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 4 Jun 2020 06:42:19 +0000 (4 16:42 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Jun 2020 15:20:14 +0000 (12 11:20 -0400)
tree01c1fbd4f89b2cf1ccc5a99bf7d4d22f45cbf841
parentcf504cd67b26ded2e25eb8f33b5ebec031b31def
target/i386: sev: Unify SEVState and SevGuestState

SEVState is contained with SevGuestState.  We've now fixed redundancies
and name conflicts, so there's no real point to the nested structure.  Just
move all the fields of SEVState into SevGuestState.

This eliminates the SEVState structure, which as a bonus removes the
confusion with the SevState enum.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200604064219.436242-10-david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/sev.c