commit 2b331b911f86f0d04eb9400a403105753ed5b69a
parent fe3c978c18b34692af7f18201c3fee57782d2ce0
Author: Brijesh Singh <brijesh.singh@amd.com>
Date: Wed, 27 Oct 2021 14:58:30 -0500
i386:sev: skip hashing the kernel for the SEV-SNP guest
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/target/i386/sev.c b/target/i386/sev.c
@@ -1820,6 +1820,11 @@ bool sev_add_kernel_loader_hashes(SevKernelLoaderContext *ctx, Error **errp)
error_setg(errp, "SEV: kernel specified but OVMF has no hash table guid");
return false;
}
+
+ if (sev_snp_enabled()) {
+ return false;
+ }
+
area = (SevHashTableDescriptor *)data;
/*