target/i386: sev: Embed SEVState in SevGuestState
commit75a877e3b14a8575fd6bc99d193f7fcc03eee94b
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 4 Jun 2020 06:42:14 +0000 (4 16:42 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Jun 2020 15:20:13 +0000 (12 11:20 -0400)
treea72acf3048631ee64db4bb521b382c8b8a1c20a8
parentd2d8a1984d7954f10f878dd8b9f6f01069c20d33
target/i386: sev: Embed SEVState in SevGuestState

Currently SevGuestState contains only configuration information.  For
runtime state another non-QOM struct SEVState is allocated separately.

Simplify things by instead embedding the SEVState structure in
SevGuestState.

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