summaryrefslogtreecommitdiffstats
path: root/target/i386
diff options
context:
space:
mode:
authorDov Murik2021-11-11 11:00:45 +0100
committerDaniel P. Berrangé2021-11-18 12:07:56 +0100
commit5a0294a21c7677498bf40a447cc4a417d51a3cf4 (patch)
treed6dfbe4b650dde0cf926b3f7b9f5ae8d9686c6a0 /target/i386
parenttarget/i386/sev: Add kernel hashes only if sev-guest.kernel-hashes=on (diff)
downloadqemu-5a0294a21c7677498bf40a447cc4a417d51a3cf4.tar.gz
qemu-5a0294a21c7677498bf40a447cc4a417d51a3cf4.tar.xz
qemu-5a0294a21c7677498bf40a447cc4a417d51a3cf4.zip
target/i386/sev: Rephrase error message when no hashes table in guest firmware
Signed-off-by: Dov Murik <dovmurik@linux.ibm.com> Acked-by: Brijesh Singh <brijesh.singh@amd.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'target/i386')
-rw-r--r--target/i386/sev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/i386/sev.c b/target/i386/sev.c
index e3abbeef68..6ff196f7ad 100644
--- a/target/i386/sev.c
+++ b/target/i386/sev.c
@@ -1232,7 +1232,8 @@ bool sev_add_kernel_loader_hashes(SevKernelLoaderContext *ctx, Error **errp)
}
if (!pc_system_ovmf_table_find(SEV_HASH_TABLE_RV_GUID, &data, NULL)) {
- error_setg(errp, "SEV: kernel specified but OVMF has no hash table guid");
+ error_setg(errp, "SEV: kernel specified but guest firmware "
+ "has no hashes table GUID");
return false;
}
area = (SevHashTableDescriptor *)data;