|
From: | Eric Blake |
Subject: | Re: [Qemu-devel] [PATCH v8 13/28] qmp: add query-sev command |
Date: | Mon, 12 Feb 2018 11:27:22 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 02/12/2018 09:37 AM, Brijesh Singh wrote:
The QMP query command can used to retrieve the SEV information when memory encryption is enabled on AMD platform. Cc: "Daniel P. Berrangé" <address@hidden> Cc: "Dr. David Alan Gilbert" <address@hidden> Cc: Markus Armbruster <address@hidden> Signed-off-by: Brijesh Singh <address@hidden> ---
+# @SevInfo: +# +# Information about Secure Encrypted Virtualization (SEV) support +# +# @enabled: true if SEV is active +# +# @api-major: SEV API major version +# +# @api-minor: SEV API minor version +# +# @build-id: SEV FW build id +# +# @policy: SEV policy value +# +# @state: SEV guest state
Is there a finite list of guest states?
+# +# Since: 2.12 +## +{ 'struct': 'SevInfo', + 'data': { 'enabled': 'bool', + 'api-major': 'uint8', + 'api-minor' : 'uint8', + 'build-id' : 'uint8', + 'policy' : 'uint32', + 'state' : 'str'
If so, this should be an enum type listing those possible states, rather than an open-coded 'str' that can hold anything.
-- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |