aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorDov Murik <dovmurik@linux.ibm.com>2021-11-11 10:00:43 +0000
committerDaniel P. Berrangé <berrange@redhat.com>2021-11-18 11:07:44 +0000
commit55cdf566412695b4fc052065c7970632129cd65b (patch)
tree7926c057d9a326389875c392a2cdadc507188cd1 /qapi
parent0055ecca84cb948c935224b4f7ca1ceb26209790 (diff)
downloadqemu-55cdf566412695b4fc052065c7970632129cd65b.zip
qemu-55cdf566412695b4fc052065c7970632129cd65b.tar.gz
qemu-55cdf566412695b4fc052065c7970632129cd65b.tar.bz2
qapi/qom,target/i386: sev-guest: Introduce kernel-hashes=on|off option
Introduce new boolean 'kernel-hashes' option on the sev-guest object. It will be used to to decide whether to add the hashes of kernel/initrd/cmdline to SEV guest memory when booting with -kernel. The default value is 'off'. 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 'qapi')
-rw-r--r--qapi/qom.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/qapi/qom.json b/qapi/qom.json
index ccd1167..eeb5395 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -769,6 +769,10 @@
# @reduced-phys-bits: number of bits in physical addresses that become
# unavailable when SEV is enabled
#
+# @kernel-hashes: if true, add hashes of kernel/initrd/cmdline to a
+# designated guest firmware page for measured boot
+# with -kernel (default: false) (since 6.2)
+#
# Since: 2.12
##
{ 'struct': 'SevGuestProperties',
@@ -778,7 +782,8 @@
'*policy': 'uint32',
'*handle': 'uint32',
'*cbitpos': 'uint32',
- 'reduced-phys-bits': 'uint32' } }
+ 'reduced-phys-bits': 'uint32',
+ '*kernel-hashes': 'bool' } }
##
# @ObjectType: