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

When sev-snp-guest objects are introduced there will be a number of
differences in how the launch data is handled compared to the existing
sev-guest object. Move sev_launch_start() 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-6-pankaj.gupta@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/sev.c