i386/sev: Add handling to encrypt/finalize guest launch data
authorBrijesh Singh <brijesh.singh@amd.com>
Thu, 30 May 2024 11:16:28 +0000 (06:16 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Jun 2024 09:01:06 +0000 (11:01 +0200)
commit9f3a6999f9730a694d7db448a99f9c9cb6515992
tree593e906aca733d5972c7ed75fae9273db3caa54b
parentd3107f882ec22cfb211eab7efa0c4e95f5ce11bb
i386/sev: Add handling to encrypt/finalize guest launch data

Process any queued up launch data and encrypt/measure it into the SNP
guest instance prior to initial guest launch.

This also updates the KVM_SEV_SNP_LAUNCH_UPDATE call to handle partial
update responses.

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Co-developed-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Co-developed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Signed-off-by: Pankaj Gupta <pankaj.gupta@amd.com>
Message-ID: <20240530111643.1091816-17-pankaj.gupta@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/sev.c
target/i386/trace-events