x86/sev: generate SEV kernel loader hashes in x86_load_linux
commitc0c2d319d6714517cc4e0332edf99f2fccaa9442
authorDov Murik <dovmurik@linux.ibm.com>
Thu, 30 Sep 2021 05:49:15 +0000 (30 08:49 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Oct 2021 10:47:24 +0000 (5 12:47 +0200)
tree3baab25fae3321d554a829c1ac07571b8720c915
parentcff03145ed3cec5c7bd542ea2e6b4458439e0bb0
x86/sev: generate SEV kernel loader hashes in x86_load_linux

If SEV is enabled and a kernel is passed via -kernel, pass the hashes of
kernel/initrd/cmdline in an encrypted guest page to OVMF for SEV
measured boot.

Co-developed-by: James Bottomley <jejb@linux.ibm.com>
Signed-off-by: James Bottomley <jejb@linux.ibm.com>
Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210930054915.13252-3-dovmurik@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/x86.c