qapi/misc-target: Group SEV QAPI definitions
There is already a section with various SEV commands / types, so move the SEV guest attestation together. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20211007161716.453984-3-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b50f6dc174
commit
993e26058d
|
@ -229,6 +229,46 @@
|
||||||
'data': { 'packet-header': 'str', 'secret': 'str', '*gpa': 'uint64' },
|
'data': { 'packet-header': 'str', 'secret': 'str', '*gpa': 'uint64' },
|
||||||
'if': 'TARGET_I386' }
|
'if': 'TARGET_I386' }
|
||||||
|
|
||||||
|
##
|
||||||
|
# @SevAttestationReport:
|
||||||
|
#
|
||||||
|
# The struct describes attestation report for a Secure Encrypted
|
||||||
|
# Virtualization feature.
|
||||||
|
#
|
||||||
|
# @data: guest attestation report (base64 encoded)
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Since: 6.1
|
||||||
|
##
|
||||||
|
{ 'struct': 'SevAttestationReport',
|
||||||
|
'data': { 'data': 'str'},
|
||||||
|
'if': 'TARGET_I386' }
|
||||||
|
|
||||||
|
##
|
||||||
|
# @query-sev-attestation-report:
|
||||||
|
#
|
||||||
|
# This command is used to get the SEV attestation report, and is
|
||||||
|
# supported on AMD X86 platforms only.
|
||||||
|
#
|
||||||
|
# @mnonce: a random 16 bytes value encoded in base64 (it will be
|
||||||
|
# included in report)
|
||||||
|
#
|
||||||
|
# Returns: SevAttestationReport objects.
|
||||||
|
#
|
||||||
|
# Since: 6.1
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# -> { "execute" : "query-sev-attestation-report",
|
||||||
|
# "arguments": { "mnonce": "aaaaaaa" } }
|
||||||
|
# <- { "return" : { "data": "aaaaaaaabbbddddd"} }
|
||||||
|
#
|
||||||
|
##
|
||||||
|
{ 'command': 'query-sev-attestation-report',
|
||||||
|
'data': { 'mnonce': 'str' },
|
||||||
|
'returns': 'SevAttestationReport',
|
||||||
|
'if': 'TARGET_I386' }
|
||||||
|
|
||||||
##
|
##
|
||||||
# @dump-skeys:
|
# @dump-skeys:
|
||||||
#
|
#
|
||||||
|
@ -297,46 +337,6 @@
|
||||||
'if': 'TARGET_ARM' }
|
'if': 'TARGET_ARM' }
|
||||||
|
|
||||||
|
|
||||||
##
|
|
||||||
# @SevAttestationReport:
|
|
||||||
#
|
|
||||||
# The struct describes attestation report for a Secure Encrypted
|
|
||||||
# Virtualization feature.
|
|
||||||
#
|
|
||||||
# @data: guest attestation report (base64 encoded)
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Since: 6.1
|
|
||||||
##
|
|
||||||
{ 'struct': 'SevAttestationReport',
|
|
||||||
'data': { 'data': 'str'},
|
|
||||||
'if': 'TARGET_I386' }
|
|
||||||
|
|
||||||
##
|
|
||||||
# @query-sev-attestation-report:
|
|
||||||
#
|
|
||||||
# This command is used to get the SEV attestation report, and is
|
|
||||||
# supported on AMD X86 platforms only.
|
|
||||||
#
|
|
||||||
# @mnonce: a random 16 bytes value encoded in base64 (it will be
|
|
||||||
# included in report)
|
|
||||||
#
|
|
||||||
# Returns: SevAttestationReport objects.
|
|
||||||
#
|
|
||||||
# Since: 6.1
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
#
|
|
||||||
# -> { "execute" : "query-sev-attestation-report",
|
|
||||||
# "arguments": { "mnonce": "aaaaaaa" } }
|
|
||||||
# <- { "return" : { "data": "aaaaaaaabbbddddd"} }
|
|
||||||
#
|
|
||||||
##
|
|
||||||
{ 'command': 'query-sev-attestation-report',
|
|
||||||
'data': { 'mnonce': 'str' },
|
|
||||||
'returns': 'SevAttestationReport',
|
|
||||||
'if': 'TARGET_I386' }
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# @SGXInfo:
|
# @SGXInfo:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue