aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorDov Murik <dovmurik@linux.ibm.com>2022-02-28 09:30:14 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2022-04-06 10:50:37 +0200
commit811b4ec7f8eb3fb1fe9851848ab8e3cd926b9627 (patch)
tree039a583e070a9d5f2ac3fe4559ec5373856be96a /qapi
parentf53faa70bb63cc0c8e2fd0752b7ad2c8a79616ba (diff)
downloadqemu-811b4ec7f8eb3fb1fe9851848ab8e3cd926b9627.zip
qemu-811b4ec7f8eb3fb1fe9851848ab8e3cd926b9627.tar.gz
qemu-811b4ec7f8eb3fb1fe9851848ab8e3cd926b9627.tar.bz2
qapi, target/i386/sev: Add cpu0-id to query-sev-capabilities
Add a new field 'cpu0-id' to the response of query-sev-capabilities QMP command. The value of the field is the base64-encoded unique ID of CPU0 (socket 0), which can be used to retrieve the signed CEK of the CPU from AMD's Key Distribution Service (KDS). Signed-off-by: Dov Murik <dovmurik@linux.ibm.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220228093014.882288-1-dovmurik@linux.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/misc-target.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/qapi/misc-target.json b/qapi/misc-target.json
index 036c5e4..bc9355b 100644
--- a/qapi/misc-target.json
+++ b/qapi/misc-target.json
@@ -144,6 +144,8 @@
#
# @cert-chain: PDH certificate chain (base64 encoded)
#
+# @cpu0-id: Unique ID of CPU0 (base64 encoded) (since 7.0)
+#
# @cbitpos: C-bit location in page table entry
#
# @reduced-phys-bits: Number of physical Address bit reduction when SEV is
@@ -154,6 +156,7 @@
{ 'struct': 'SevCapability',
'data': { 'pdh': 'str',
'cert-chain': 'str',
+ 'cpu0-id': 'str',
'cbitpos': 'int',
'reduced-phys-bits': 'int'},
'if': 'TARGET_I386' }
@@ -172,6 +175,7 @@
#
# -> { "execute": "query-sev-capabilities" }
# <- { "return": { "pdh": "8CCDD8DDD", "cert-chain": "888CCCDDDEE",
+# "cpu0-id": "2lvmGwo+...61iEinw==",
# "cbitpos": 47, "reduced-phys-bits": 5}}
#
##