i386/sev: Move sev_launch_finish to separate class method
authorPankaj Gupta <pankaj.gupta@amd.com>
Thu, 30 May 2024 11:16:18 +0000 (06:16 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Jun 2024 09:01:06 +0000 (11:01 +0200)
commitbce615a14aec07cab0488e5a242f6a91e641efcb
tree65484ef074eaf467d2cd9919a340e57aa847786e
parent6600f1ac0c81cbe67faf048ea07f78542dea925f
i386/sev: Move sev_launch_finish to separate class method

When sev-snp-guest objects are introduced there will be a number of
differences in how the launch finish is handled compared to the existing
sev-guest object. Move sev_launch_finish() to a class method to make it
easier to implement SNP-specific launch update functionality later.

Signed-off-by: Pankaj Gupta <pankaj.gupta@amd.com>
Message-ID: <20240530111643.1091816-7-pankaj.gupta@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/sev.c