qapi, target/i386/sev: Add cpu0-id to query-sev-capabilities
commit811b4ec7f8eb3fb1fe9851848ab8e3cd926b9627
authorDov Murik <dovmurik@linux.ibm.com>
Mon, 28 Feb 2022 09:30:14 +0000 (28 09:30 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Apr 2022 08:50:37 +0000 (6 10:50 +0200)
tree039a583e070a9d5f2ac3fe4559ec5373856be96a
parentf53faa70bb63cc0c8e2fd0752b7ad2c8a79616ba
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>
qapi/misc-target.json
target/i386/sev.c